Revision: 1905
Author: jsuijs
Date: Sat Apr 10 12:02:41 2010
Log: minor changes for C target.
http://code.google.com/p/jallib/source/detail?r=1905

Modified:
 /trunk/grammar/jal.g

=======================================
--- /trunk/grammar/jal.g        Fri Apr  9 12:51:17 2010
+++ /trunk/grammar/jal.g        Sat Apr 10 12:02:41 2010
@@ -13,13 +13,13 @@
 grammar jal;

 options {
-       language=Python;
+       language=C;
        output=AST;
-       ASTLabelType=CommonTree;
+       ASTLabelType=pANTLR3_BASE_TREE;
        backtrack       = true;
 }

-program : ( statement {print $statement.tree.toStringTree();} )+ ;
+program : ( statement )+ ;

 statement :
         block_stmt | for_stmt | forever_stmt | if_stmt
@@ -93,7 +93,7 @@
             'end' 'function'
     ;

-proc_parm : 'volatile'* type ( IN | 'out' | IN 'out' ) IDENTIFIER at_decl?
+proc_parm : 'volatile'* type ( 'in' | 'out' | 'in' 'out' ) IDENTIFIER at_decl?
     ;

pseudo_proc_def : 'procedure' IDENTIFIER '\'' 'put' '(' proc_parm? (',' proc_parm)* ')' 'is'
@@ -106,8 +106,6 @@
             'end' 'function'
     ;

-IN : 'in' ;
-
 alias_def : 'alias' IDENTIFIER 'is' IDENTIFIER
         ;

--
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.

Reply via email to