In symbolTab.ml, change
type 'a hereflagged = Here of 'a | NotHere of Ident.long into type 'a elt = Local of 'a | Imported of Ident.long * static_arg list i.e., i am basically doing two things: - fix poor naming - adding static arg to nodes indeed, when compiling an equation that involves nodes defined in another package, I need to check that the static args and the static params match. Therefore I need to have the static params ! Therefore I add them (I will use them in the next commit). Moreover, in SyntaxTreeCore.node_info, the static_params list was an option type, which is a bit weird (empty lists are enough to represent node with no static params).
Showing
- src/TODO 10 additions, 8 deletionssrc/TODO
- src/expandPack.ml 6 additions, 5 deletionssrc/expandPack.ml
- src/getEff.ml 3 additions, 12 deletionssrc/getEff.ml
- src/lazyCompiler.ml 20 additions, 26 deletionssrc/lazyCompiler.ml
- src/parser.mly 7 additions, 6 deletionssrc/parser.mly
- src/symbolTab.ml 14 additions, 13 deletionssrc/symbolTab.ml
- src/symbolTab.mli 17 additions, 13 deletionssrc/symbolTab.mli
- src/syntaxTab.ml 27 additions, 28 deletionssrc/syntaxTab.ml
- src/syntaxTreeCore.ml 3 additions, 3 deletionssrc/syntaxTreeCore.ml
- src/syntaxTreeDump.ml 9 additions, 10 deletionssrc/syntaxTreeDump.ml
- src/test/should_work/packEnvTest/packages.lus 2 additions, 2 deletionssrc/test/should_work/packEnvTest/packages.lus
- src/test/test.res.exp 49 additions, 10 deletionssrc/test/test.res.exp
Loading
Please register or sign in to comment