[Omake] SVN Commit: OMake Build System [0.9.8.x] (Rev. 10613)

Jason J. Hickey jyh at cs.caltech.edu
Thu May 3 10:17:49 PDT 2007


Added the array arguments, bug #645.  The syntax is:
   - ... for a normal body argument
   - [...] for an array body argument

   X =
      file([...])
         a
         b
         c
   - : <array
       /Users/jyh/projects/omake/0.9.8.x/a : File
       /Users/jyh/projects/omake/0.9.8.x/b : File
       /Users/jyh/projects/omake/0.9.8.x/c : File>
       : Array

If an application has an elision, you can omit the colon
at the end in interactive mode.

This can still be improved, especially with keyword
arguments.  When there are keyword arguments, the argument
lines can get long.  It might be nice to allow using
a line break instead of the , separator.

   f(X[] =
        a
        b
        c
     foo
     Y = 1)

Or perhaps allow mixed notation.

   f(X = 1
     Y = 2
     a, b, c)

----
Changes:
    +2 -1	omake-branches/0.9.8.x/src/ast/omake_ast.ml
    +5 -0	omake-branches/0.9.8.x/src/ast/omake_ast_print.ml
    +112 -39	omake-branches/0.9.8.x/src/ast/omake_ast_util.ml
    +5 -4	omake-branches/0.9.8.x/src/ast/omake_ast_util.mli
    +5 -4	omake-branches/0.9.8.x/src/env/omake_ast_lex.mll
    +22 -40	omake-branches/0.9.8.x/src/env/omake_ast_parse.input
    +1 -1	omake-branches/0.9.8.x/src/env/omake_gen_parse.ml
    +12 -1	omake-branches/0.9.8.x/src/env/omake_ir_ast.ml
 
A hyperlinked version of this commit is available at
http://svn.metaprl.org/commitlogs/omake/2007-05.html#07/05/03.10:17:49



More information about the OMake-CVS mailing list