[Bprocessor-commit] bscript/src/etc bscript.g,1.4,1.5
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-09-12 12:59:39
|
Update of /cvsroot/bprocessor/bscript/src/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25986/src/etc Modified Files: bscript.g Log Message: changes to the syntax Index: bscript.g =================================================================== RCS file: /cvsroot/bprocessor/bscript/src/etc/bscript.g,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bscript.g 12 Sep 2006 09:27:31 -0000 1.4 --- bscript.g 12 Sep 2006 12:59:36 -0000 1.5 *************** *** 63,68 **** program[Function env] ! : expression[env] End ; expression[Function env] : term[env] --- 63,81 ---- program[Function env] ! : statement[env] End ; + + statement[Function env] + : name:Identifier { env.append(new Mark()); } + ( simpleton[env] )* + { env.append(new Call(name.getText())); } + ; + + simpleton[Function env] + : variable[env] + | literal[env] + | StartTerm expression[env] EndTerm + ; + expression[Function env] : term[env] |