Skip to content

Commit

Permalink
Merge branch 'uninum'
Browse files Browse the repository at this point in the history
Enable Unicode numeral support in NQP.
  • Loading branch information
ShimmerFairy committed Aug 15, 2015
2 parents a8c8ee4 + 52b7ced commit 4e374ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HLL/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ grammar HLL::Grammar {
token decint { [\d+]+ % '_' }
token decints { [<.ws><decint><.ws>]+ % ',' }

token hexint { [<[ 0..9 a..f A..F ]>+]+ % '_' }
token hexint { [[\d|<[ a..f A..F a..f A..F ]>]+]+ % '_' }
token hexints { [<.ws><hexint><.ws>]+ % ',' }

token octint { [<[ 0..7 ]>+]+ % '_' }
token octint { [\d+]+ % '_' }
token octints { [<.ws><octint><.ws>]+ % ',' }

token binint { [<[ 0..1 ]>+]+ % '_' }
token binint { [\d+]+ % '_' }
token binints { [<.ws><binint><.ws>]+ % ',' }

token integer {
Expand Down

0 comments on commit 4e374ec

Please sign in to comment.