[antlr-interest] Expressions
Sebastian Kaliszewski
sk at z.pl
Fri Aug 6 08:53:25 PDT 2004
Peter Ashford wrote:
> Okay, thanks for that. My application is a simple scripting language
> which can do simple formulas. I was thinking of having all of the
> expression rules return a VariableInfo class which stored any possible
> value and could perform the basic expression operations on it (add,
> minus, div, mult etc) - my idea being to handle the semantic issues
> within the VariableInfo class (it will check types, throw exceptions for
> mismatches, perform arithmetic options if legal)
>
> Does that sound like a basically sane approach to take?
Yes, it seems prefectly reasonable.
rgds
--
Sebastian Kaliszewski
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