[antlr-interest] Standard library functions: how to??
Bharath S
bharath at starthis.com
Wed Apr 21 14:39:54 PDT 2004
Hi Grp,
I am writing the grammar for a new language and I'm wondering how standard
library functions are implemented. For example, if the user inputs a
statement "x := abs(y);", should I write the abs() function as an action in
the grammar, when the "abs" keyword is encountered? I looked at several
grammars (java, pascal, mumath etc) and I cant find similar implementations.
Am I missing something here?
Thanks.
Bharath
-----Original Message-----
From: Ric Klaren [mailto:klaren at cs.utwente.nl]
Sent: Tuesday, April 20, 2004 3:52 AM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Re: mystery in printing order
On Sat, Apr 17, 2004 at 11:32:46PM -0000, idontwantanidwith2000init wrote:
> What other functions should I overload?
> It looks like a great idea.
Every reportError/Warning method in a lexer/parser/treeparser. All antlr
messages are routed through these.
Ric
--
-----+++++*****************************************************+++++++++----
---
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++----
---
"I don't have anything against Java - it's the best damn implementation
of UCSD Pascal ever released..." --- Larry Smith
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list