|Q Parsing Arrays email@example.com (Greg Simon) (1996-10-16)|
|From:||Greg Simon <firstname.lastname@example.org>|
|Date:||16 Oct 1996 17:33:11 -0400|
|Organization:||Penn State University|
If the source code I'm parsing contains an array definition like
a = [ 2 3 4 5 ];
Is it best to parse out the 'a', '[', 2, 3, 4, 5. ']' into the symbol
table, and then put the '=' into an icode intsruction? Or is a better
solution to actually parse the array before icode begins running, and
store 'a' in the symbol table with [2,3,4,5] assigned to it?
[Depends what you're going to do with it. -John]
Return to the
Search the comp.compilers archives again.