Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed uses of xor operator in re parser

  • Loading branch information...
commit 40617e30d7cb69de272c3bf2c6bedef6a482cb77 1 parent 90fc307
@alexwarth alexwarth authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bs-js-compiler.txt
View
6 bs-js-compiler.txt
@@ -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.
Something went wrong with that request. Please try again.