Related articles |
---|
Parsing design problem grom_3@optusnet.com.au (Cameron Zemek) (2003-06-03) |
From: | "Cameron Zemek" <grom_3@optusnet.com.au> |
Newsgroups: | comp.compilers |
Date: | 3 Jun 2003 01:09:40 -0400 |
Organization: | Compilers Central |
Keywords: | parse, design, question |
Posted-Date: | 03 Jun 2003 01:09:40 EDT |
With the following grammar (view in monospace font) what should handle
(lexer or parser) identifying between cell references, cell ranges,
reference names and sheet names?
<cell ref> ::= [<sheet name> "!" ] <col ref> <row ref>
<cell range> ::= <cell ref> ":" <cell ref> |
<row ref> ":" <row ref> |
<col ref> ":" <col ref>
<sheet name> ::= ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
<col ref> ::= ["$"] 'A'..'Z' ['A'..'Z']
<row ref> ::= ["$"] ('0'..'9')*
<ref name> ::= 'a'..'z'|'A'..'Z'|'_'
['a'..'z'|'A'..'Z'|'_'|'.'|'0'..'9']*
Return to the
comp.compilers page.
Search the
comp.compilers archives again.