Parsing design problem

"Cameron Zemek" <grom_3@optusnet.com.au>
3 Jun 2003 01:09:40 -0400

          From comp.compilers

Related articles
Parsing design problem grom_3@optusnet.com.au (Cameron Zemek) (2003-06-03)
| List of all articles for this month |

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']*


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.