[antlr-interest] Standard library functions: how to??
Bharath S
bharath at starthis.com
Wed Apr 21 15:40:47 PDT 2004
Hi Mark,
>> Standard library functions should be added to your symbol
tables before you begin the interpretation or compilation step
By adding, Should I write code for each of the standard library function I
am planning to provide? There should be a whole load of library functions
for any language and there should be an easier way of getting this done,
right?
Thanks for your comments!
Bharath
-----Original Message-----
From: Mark Lentczner [mailto:markl at glyphic.com]
Sent: Wednesday, April 21, 2004 5:15 PM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Standard library functions: how to??
On Apr 21, 2004, at 2:39 PM, Bharath S wrote:
> 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?
Unless abs(y) needs to be handled very differently than a call to a
user function, foo(y), then no, the parser should know nothing about
it. .
- Mark
Mark Lentczner
markl at wheatfarm.org
http://www.wheatfarm.org/
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