remove sLETREC_SYNTAX
This commit is contained in:
parent
0a849affde
commit
b50f5fc54f
|
@ -80,8 +80,7 @@ typedef struct {
|
||||||
|
|
||||||
pic_sym sDEFINE, sLAMBDA, sIF, sBEGIN, sQUOTE, sSETBANG;
|
pic_sym sDEFINE, sLAMBDA, sIF, sBEGIN, sQUOTE, sSETBANG;
|
||||||
pic_sym sQUASIQUOTE, sUNQUOTE, sUNQUOTE_SPLICING;
|
pic_sym sQUASIQUOTE, sUNQUOTE, sUNQUOTE_SPLICING;
|
||||||
pic_sym sDEFINE_SYNTAX, sDEFINE_MACRO;
|
pic_sym sDEFINE_SYNTAX, sDEFINE_MACRO, sLET_SYNTAX;
|
||||||
pic_sym sLET_SYNTAX, sLETREC_SYNTAX;
|
|
||||||
pic_sym sDEFINE_LIBRARY, sIMPORT, sEXPORT;
|
pic_sym sDEFINE_LIBRARY, sIMPORT, sEXPORT;
|
||||||
pic_sym sCONS, sCAR, sCDR, sNILP;
|
pic_sym sCONS, sCAR, sCDR, sNILP;
|
||||||
pic_sym sADD, sSUB, sMUL, sDIV, sMINUS;
|
pic_sym sADD, sSUB, sMUL, sDIV, sMINUS;
|
||||||
|
|
|
@ -76,7 +76,6 @@ pic_init_core(pic_state *pic)
|
||||||
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sBEGIN, pic->rBEGIN);
|
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sBEGIN, pic->rBEGIN);
|
||||||
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sDEFINE_SYNTAX, pic->rDEFINE_SYNTAX);
|
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sDEFINE_SYNTAX, pic->rDEFINE_SYNTAX);
|
||||||
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sLET_SYNTAX, pic->rLET_SYNTAX);
|
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sLET_SYNTAX, pic->rLET_SYNTAX);
|
||||||
pic_define_syntactic_keyword(pic, pic->lib->senv, pic->sLETREC_SYNTAX, pic->rLETREC_SYNTAX);
|
|
||||||
|
|
||||||
pic_init_bool(pic); DONE;
|
pic_init_bool(pic); DONE;
|
||||||
pic_init_pair(pic); DONE;
|
pic_init_pair(pic); DONE;
|
||||||
|
|
|
@ -481,9 +481,6 @@ macroexpand_node(pic_state *pic, pic_value expr, struct pic_senv *senv)
|
||||||
else if (tag == pic->rLET_SYNTAX) {
|
else if (tag == pic->rLET_SYNTAX) {
|
||||||
return macroexpand_let_syntax(pic, expr, senv);
|
return macroexpand_let_syntax(pic, expr, senv);
|
||||||
}
|
}
|
||||||
/* else if (tag == pic->sLETREC_SYNTAX) { */
|
|
||||||
/* return macroexpand_letrec_syntax(pic, expr, senv); */
|
|
||||||
/* } */
|
|
||||||
else if (tag == pic->rLAMBDA) {
|
else if (tag == pic->rLAMBDA) {
|
||||||
return macroexpand_lambda(pic, expr, senv);
|
return macroexpand_lambda(pic, expr, senv);
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,6 @@ pic_open(int argc, char *argv[], char **envp)
|
||||||
register_core_symbol(pic, sDEFINE_SYNTAX, "define-syntax");
|
register_core_symbol(pic, sDEFINE_SYNTAX, "define-syntax");
|
||||||
register_core_symbol(pic, sDEFINE_MACRO, "define-macro");
|
register_core_symbol(pic, sDEFINE_MACRO, "define-macro");
|
||||||
register_core_symbol(pic, sLET_SYNTAX, "let-syntax");
|
register_core_symbol(pic, sLET_SYNTAX, "let-syntax");
|
||||||
register_core_symbol(pic, sLETREC_SYNTAX, "letrec-syntax");
|
|
||||||
register_core_symbol(pic, sDEFINE_LIBRARY, "define-library");
|
register_core_symbol(pic, sDEFINE_LIBRARY, "define-library");
|
||||||
register_core_symbol(pic, sIMPORT, "import");
|
register_core_symbol(pic, sIMPORT, "import");
|
||||||
register_core_symbol(pic, sEXPORT, "export");
|
register_core_symbol(pic, sEXPORT, "export");
|
||||||
|
|
Loading…
Reference in New Issue