add 'define-macro' core syntax
This commit is contained in:
parent
ddbc2c83a2
commit
3d1f74d8f5
|
@ -17,7 +17,8 @@ struct pic_syntax {
|
||||||
PIC_STX_QUOTE,
|
PIC_STX_QUOTE,
|
||||||
PIC_STX_LAMBDA,
|
PIC_STX_LAMBDA,
|
||||||
PIC_STX_IF,
|
PIC_STX_IF,
|
||||||
PIC_STX_BEGIN
|
PIC_STX_BEGIN,
|
||||||
|
PIC_STX_DEFMACRO
|
||||||
} kind;
|
} kind;
|
||||||
pic_sym sym;
|
pic_sym sym;
|
||||||
};
|
};
|
||||||
|
|
|
@ -132,6 +132,7 @@ pic_open(int argc, char *argv[], char **envp)
|
||||||
register_core_syntax(pic, PIC_STX_LAMBDA, "lambda");
|
register_core_syntax(pic, PIC_STX_LAMBDA, "lambda");
|
||||||
register_core_syntax(pic, PIC_STX_IF, "if");
|
register_core_syntax(pic, PIC_STX_IF, "if");
|
||||||
register_core_syntax(pic, PIC_STX_BEGIN, "begin");
|
register_core_syntax(pic, PIC_STX_BEGIN, "begin");
|
||||||
|
register_core_syntax(pic, PIC_STX_DEFMACRO, "define-macro");
|
||||||
pic_gc_arena_restore(pic, ai);
|
pic_gc_arena_restore(pic, ai);
|
||||||
|
|
||||||
pic_init_core(pic);
|
pic_init_core(pic);
|
||||||
|
|
Loading…
Reference in New Issue