Revision: 1901
Author: jsuijs
Date: Fri Apr 9 08:26:10 2010
Log: grammar procedure fix (work in progress)
http://code.google.com/p/jallib/source/detail?r=1901
Modified:
/trunk/grammar/jal.g
=======================================
--- /trunk/grammar/jal.g Fri Apr 9 08:25:31 2010
+++ /trunk/grammar/jal.g Fri Apr 9 08:26:10 2010
@@ -81,8 +81,8 @@
block_stmt : 'block' statement+ 'end' 'block' ;
-proc_def : 'procedure' IDENTIFIER '(' proc_parm (',' proc_parm)* ')' 'is'
- statement+
+proc_def : 'procedure' IDENTIFIER ( '(' ( proc_parm (',' proc_parm)*
)? ')' )? 'is'
+ statement*
'end' 'procedure'
;
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.