Permalink
Browse files

removed uses of xor operator in re parser

  • Loading branch information...
1 parent 90fc307 commit 40617e30d7cb69de272c3bf2c6bedef6a482cb77 @alexwarth alexwarth committed Jul 1, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 bs-js-compiler.txt
View
@@ -95,13 +95,13 @@ ometa BSJSParser {
jsonPropName = "name" | "number" | "string",
re = spaces <'/' reBody '/' reFlag*>:x -> [#regExpr, x],
reBody = re1stChar reChar*,
- re1stChar = ~('*' || '\\' || '/' || '[') reNonTerm
+ re1stChar = ~('*' | '\\' | '/' | '[') reNonTerm
| escapeChar
| reClass,
reChar = re1stChar | '*',
- reNonTerm = ~('\n' || '\r') char,
+ reNonTerm = ~('\n' | '\r') char,
reClass = '[' reClassChar* ']',
- reClassChar = ~('[' || ']') reChar,
+ reClassChar = ~('[' | ']') reChar,
reFlag = nameFirst,
formal = spaces "name",
funcRest = "(" listOf(#formal, ','):fs ")" "{" srcElems:body "}" -> [#func, fs, body],

0 comments on commit 40617e3

Please sign in to comment.