Skip to content
Snippets Groups Projects
  • Erwan Jahier's avatar
    956514c2
    In symbolTab.ml, change · 956514c2
    Erwan Jahier authored
    	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).
    956514c2
    History
    In symbolTab.ml, change
    Erwan Jahier authored
    	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).
expandPack.ml 4.35 KiB