I searched for this in the mailing list, and didn't find something, although
I'm wondering why nobody had this question before:

Is it possible to define functions/methods in the DSL and let ANTLR parse
it?

Input:
int myMethod(int i) {
    return i + 2;
}

int t = myMethod(2);
print(t);

Output:
4

Can ANTLR "jump" to the method, if it's called, or do i have to make like 2
parsers, one for first searching for methods and the second one for
executing the commands? Or is there any different way on how to do such
things?

Any help is appreciated.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to