Permalink
Browse files

Change token special to be a character class.

  • Loading branch information...
1 parent bf7d340 commit 90e224a433c86b6149436d27827b2b2a6e3409ad @colomon committed Oct 10, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/ISO_10303_21/Grammar.pm
View
5 lib/ISO_10303_21/Grammar.pm
@@ -7,10 +7,7 @@ grammar ISO_10303_21::Grammar
token digit { <[0..9]> }
token lower { <[a..z]> }
token upper { <[A..Z]> | '_' }
- token special { '!' | '"' | '*' | '$' | '%' | '&' | '.' | '#'
- | '+' | ',' | '-' | '(' | ')' | '?' | '/' | ':'
- | ';' | '<' | '=' | '>' | '@' | '[' | ']' | '{'
- | '|' | '}' | '^' | '`' | '~' }
+ token special { <[ !"*$%&.#+,\-()?/:;<=>@[\]{|}^`~ ]> }
token reverse_solidus { '\\' }
token apostrophe { "'" }
token character { <.space> | <.digit> | <.lower> | <.upper> | <.special> | <.reverse_solidus> | <.apostrophe> }

0 comments on commit 90e224a

Please sign in to comment.