You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-discussion
Hi all -
I'm trying to write a small "functional programming" language using ANTLR4.
Two of my rules are as follows -
func_decl : func_name arg_list '=' equation ';' // e.g. sqr x = x * x ; ;
func_call : func_name arg_list ';' ;
In both rules, I'd like to be able to count the number of parameters being supplied to the function (so that I can test for too few or too many parameters). So - can ANTLR4 do this and if so, how?