[antlr-interest] AST, value manipulation.
Maassen, H.A.M.
H.A.M.Maassen at student.tue.nl
Thu Nov 18 01:10:23 PST 2004
I don't think rangechecking is (usually? ever?) done at compile time. How would you check the following?
v := Random(20)
w := GetInput()
a[v] := a[w]
-----Original Message-----
From: Bharath Sundararaman [mailto:bharath.sundararaman at starthis.com]
Sent: Wed 11/17/2004 6:32 PM
To: antlr-interest at yahoogroups.com
Cc:
Subject: [antlr-interest] AST, value manipulation.
...
VAR
v: INT := 2;
a: ARRAY[1..10] OF INT;
END_VAR
And I have a statement
a[v] := 200;
..., I also want to check if index "v" is within bounds, which
means I need to retrieve the value of "v" and make sure it does not
exceed the range 1..10
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4230 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20041118/f38f33ef/attachment.bin
More information about the antlr-interest
mailing list