coco/r problem to distinguish token

"Marco" <tecsvill@yahoo.com>
11 Jul 2005 10:47:38 -0400

          From comp.compilers

Related articles
coco/r problem to distinguish token tecsvill@yahoo.com (Marco) (2005-07-11)
| List of all articles for this month |
From: "Marco" <tecsvill@yahoo.com>
Newsgroups: comp.compilers
Date: 11 Jul 2005 10:47:38 -0400
Organization: http://groups.google.com
Keywords: parse, tools
Posted-Date: 11 Jul 2005 10:47:38 EDT

I have this grammar.


Document ::= <? xml version="1.0" ?> Element
Element ::= <TagName Attributes>ElementContent</TagName>
TagName ::= Name
Name ::= [a-zA-Z0-9_:\-]+
ElementContent ::= (Text | Element)*
Text ::= [^<>]+
Attributes ::= Attribute*
Attribute ::= AttributeName="[^<>"\n]*"
AttributeName ::= Name


I written it in coco/r but I don't know how distinguish between tokens
Name, Text, and token at the right of AttributeName. Help me please.



Post a followup to this message

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