aboutsummaryrefslogtreecommitdiffstats
path: root/Grammar.pp
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-02-15 13:16:37 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-02-15 13:16:37 +0100
commit80fc59dbdb0771c509a870751fd85cc4b106b267 (patch)
treead175a641131e62abd73c4def87f44e9a32ca272 /Grammar.pp
parenteaa388e022962ee6b639b2fb65c1212c15f93a4b (diff)
downloadPraspel-80fc59dbdb0771c509a870751fd85cc4b106b267.zip
Praspel-80fc59dbdb0771c509a870751fd85cc4b106b267.tar.gz
Praspel-80fc59dbdb0771c509a870751fd85cc4b106b267.tar.bz2
Escape tokens.
Diffstat (limited to 'Grammar.pp')
-rw-r--r--Grammar.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Grammar.pp b/Grammar.pp
index fcb9b59..3feda3a 100644
--- a/Grammar.pp
+++ b/Grammar.pp
@@ -101,10 +101,10 @@
%token null null|void
%token true true
%token false false
-%token binary [+-]?0b[01]+
-%token octal [+-]?0[0-7]+
-%token hexa [+-]?0[xX][0-9a-fA-F]+
-%token decimal [+-]?(0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)?
+%token binary [\+\-]?0b[01]+
+%token octal [\+\-]?0[0-7]+
+%token hexa [\+\-]?0[xX][0-9a-fA-F]+
+%token decimal [\+\-]?(0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)?
%token quote_ ' -> string
%token string:escaped \\(['nrtvef\\b]|[0-7]{1,3}|[xX][0-9a-fA-F]{1,2})
%token string:string [^'\\]+