[Bprocessor-commit] bscript/src/etc bscript.g,1.8,1.9
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-09-29 07:13:24
|
Update of /cvsroot/bprocessor/bscript/src/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21194/src/etc Modified Files: bscript.g Log Message: List access implemented in bscript Index: bscript.g =================================================================== RCS file: /cvsroot/bprocessor/bscript/src/etc/bscript.g,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** bscript.g 17 Sep 2006 17:29:21 -0000 1.8 --- bscript.g 29 Sep 2006 07:13:16 -0000 1.9 *************** *** 27,30 **** --- 27,32 ---- Lt : '<' ; Gt : '>' ; + LB : '[' ; + RB : ']' ; Equal: '=' ; LtEq: "<=" ; *************** *** 113,122 **** } "while" expression[env] ! { env.append(branchend); } "do" ( statement[env] End ) * "end" { int after = env.length(); Branch branch = new Branch(before - after); env.append(branch); ! branchend.setOffset(after - before + 1); } ; --- 115,124 ---- } "while" expression[env] ! { int beforebranch = env.length(); env.append(branchend); } "do" ( statement[env] End ) * "end" { int after = env.length(); Branch branch = new Branch(before - after); env.append(branch); ! branchend.setOffset(after - beforebranch + 1); } ; *************** *** 186,189 **** --- 188,192 ---- : literal[env] | variable[env] + | variable[env] LB ( expression[env] ) RB { env.append(new Primitive(Primitive.GET)); } | StartTerm expression[env] EndTerm | unary[env] |