川合のプログラミング言語自作のためのテキスト第四版#0

(1) はじめに

(2) プログラミング言語の作り方として正しいのはどちらなのか?

(3) 「ライブラリ自作駆動開発」とは何ですか?

(4) 著者について

(5) ライブラリの名称

(6) ヘッダファイルを作るかどうか

#if (!defined(MyStatic))
    #define MyStatic  static
#endif

...

MyStatic int libFunc1(int a, int b, int c)
{
    ....
}

(7) 関数名をどうするか

#if (!defined(a_Version))
    #define a_Version   9999
#endif

#if (a_Version > 0)
    #define static_     a_static
    ...
    #define VecChr      a_VecChr
    #define Set0        a_Set0
    ...
#endif

....

 #if (!defined(a_static))
    #define a_static    static
#endif

...

(8) acl4v2.c

#include "acl4v2_000.c"
#include "acl4v2_001.c"
#include "acl4v2_002.c"
#include "acl4v2_003.c"
#include "acl4v2_004.c"
#include "acl4v2_005.c"
...

(9) acl4v2_000.c

#if (!defined(a_Version))
    #define a_Version   9999
#endif

#if (a_Version >= 1)
    #define static_     a_static
    #define class_      a_class
#endif

#if (!defined(a_static))
    #define a_static    static
#endif

#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#define a_class(c)      typedef struct c ## _ c; struct c ## _

(10) 追加の説明

(11) あとがき?

こめんと欄


コメントお名前NameLink

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS