added hygienic macro facility! Fooo!

This commit is contained in:
Yuichi Nishiwaki
2013-11-27 15:58:28 +09:00
parent 9a027dae6e
commit 1ab588d21f
4 changed files with 69 additions and 10 deletions
+4 -2
View File
@@ -19,10 +19,12 @@ struct pic_syntax {
PIC_STX_IF,
PIC_STX_BEGIN,
PIC_STX_MACRO,
PIC_STX_DEFMACRO
PIC_STX_DEFMACRO,
PIC_STX_DEFSYNTAX
} kind;
pic_sym sym;
struct pic_proc *macro;
struct pic_senv *senv;
};
struct pic_sc {
@@ -41,6 +43,6 @@ struct pic_sc {
#define pic_senv_p(v) (pic_type(v) == PIC_TT_SENV)
struct pic_syntax *pic_syntax_new(pic_state *, int kind, pic_sym sym);
struct pic_syntax *pic_syntax_new_macro(pic_state *, pic_sym, struct pic_proc *);
struct pic_syntax *pic_syntax_new_macro(pic_state *, pic_sym, struct pic_proc *, struct pic_senv *senv);
#endif