[ragel-users] Help with grammar of XML

Iñaki Baz Castillo ibc at aliax.net
Mon Nov 23 18:45:43 UTC 2009


Hi, I've terminating a Ragel parser and to finish it I just must understand 
the following XML grammar as appears in:
  http://www.w3.org/TR/REC-xml/#NT-AttValue


 AttValue ::= '"' ([^<&"] | Reference)* '"' |  "'" ([^<&'] | Reference)* "'"

Could I know which would be the equivalent to [^<&"] in Ragel grammar?
The problem is that I¡m not 100% sure of what [^<&"] means in the XML grammar 
as it's not BNF which I'm used to.

Does [^<&"] means "any symbol but '<', '&' and '"'?

Thanks a lot.

-- 
Iñaki Baz Castillo <ibc at aliax.net>




More information about the ragel-users mailing list