|
@ -104,7 +104,7 @@ jb_record *jbs= NULL; |
|
|
|
|
|
|
|
|
// this is the global scope |
|
|
// this is the global scope |
|
|
oop globals= 0; |
|
|
oop globals= 0; |
|
|
oop properties= 0; |
|
|
|
|
|
|
|
|
oop program= 0; |
|
|
oop prop_enums= 0; |
|
|
oop prop_enums= 0; |
|
|
|
|
|
|
|
|
#define DO_SYMBOLS() \ |
|
|
#define DO_SYMBOLS() \ |
|
@ -2169,10 +2169,13 @@ metaCatch = META_AT ( META_IMPORT s:META_STRING ";" { inputStack |
|
|
| META_LCB s:mstmts { map_append(outputProgram, s); $$= null } |
|
|
| META_LCB s:mstmts { map_append(outputProgram, s); $$= null } |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
mvalue = i:META_IDENT { $$= eval(globals, newGetVariable(i)) } |
|
|
|
|
|
|
|
|
mvalue = i:META_IDENT { i= newGetVariable(i) } |
|
|
|
|
|
( a:meta_argumentList { i = (null != getSyntax(1, i)) ? apply(globals, globals, getSyntax(1, i), a, i) : newCall(i, a) } )? |
|
|
|
|
|
{ $$= eval(globals, i)} |
|
|
| META_LPAREN ( i:MO_OPERATION |
|
|
| META_LPAREN ( i:MO_OPERATION |
|
|
| i:meta_exp |
|
|
| i:meta_exp |
|
|
) META_RPAREN { $$= eval(globals, i) } |
|
|
|
|
|
|
|
|
) META_RPAREN { $$= eval(globals, i) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mstmts = ( s:eval_stmt )* ( META_NIL META_SEMICOLON META_RCB { $$= null } |
|
|
mstmts = ( s:eval_stmt )* ( META_NIL META_SEMICOLON META_RCB { $$= null } |
|
|
| META_RCB { $$= s } |
|
|
| META_RCB { $$= s } |
|
@ -4665,10 +4668,10 @@ int main(int argc, char **argv) |
|
|
DO_PROTOS() |
|
|
DO_PROTOS() |
|
|
#undef _DO |
|
|
#undef _DO |
|
|
|
|
|
|
|
|
properties = makeMap(); |
|
|
|
|
|
|
|
|
program = makeMap(); |
|
|
prop_enums = makeMap(); |
|
|
prop_enums = makeMap(); |
|
|
map_set(properties, intern("enums"), prop_enums); |
|
|
|
|
|
map_set(globals, intern("properties"), properties); |
|
|
|
|
|
|
|
|
map_set(program, intern("enums"), prop_enums); |
|
|
|
|
|
map_set(globals, intern("program"), program); |
|
|
|
|
|
|
|
|
fixScope(globals); |
|
|
fixScope(globals); |
|
|
|
|
|
|
|
|