Skip to content

Commit

Permalink
Change token special to be a character class.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Oct 10, 2012
1 parent bf7d340 commit 90e224a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/ISO_10303_21/Grammar.pm
Expand Up @@ -7,10 +7,7 @@ grammar ISO_10303_21::Grammar
token digit { <[0..9]> } token digit { <[0..9]> }
token lower { <[a..z]> } token lower { <[a..z]> }
token upper { <[A..Z]> | '_' } token upper { <[A..Z]> | '_' }
token special { '!' | '"' | '*' | '$' | '%' | '&' | '.' | '#' token special { <[ !"*$%&.#+,\-()?/:;<=>@[\]{|}^`~ ]> }
| '+' | ',' | '-' | '(' | ')' | '?' | '/' | ':'
| ';' | '<' | '=' | '>' | '@' | '[' | ']' | '{'
| '|' | '}' | '^' | '`' | '~' }
token reverse_solidus { '\\' } token reverse_solidus { '\\' }
token apostrophe { "'" } token apostrophe { "'" }
token character { <.space> | <.digit> | <.lower> | <.upper> | <.special> | <.reverse_solidus> | <.apostrophe> } token character { <.space> | <.digit> | <.lower> | <.upper> | <.special> | <.reverse_solidus> | <.apostrophe> }
Expand Down

0 comments on commit 90e224a

Please sign in to comment.