diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-02-15 13:16:37 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-02-15 13:16:37 +0100 |
commit | 80fc59dbdb0771c509a870751fd85cc4b106b267 (patch) | |
tree | ad175a641131e62abd73c4def87f44e9a32ca272 /Grammar.pp | |
parent | eaa388e022962ee6b639b2fb65c1212c15f93a4b (diff) | |
download | Praspel-80fc59dbdb0771c509a870751fd85cc4b106b267.zip Praspel-80fc59dbdb0771c509a870751fd85cc4b106b267.tar.gz Praspel-80fc59dbdb0771c509a870751fd85cc4b106b267.tar.bz2 |
Escape tokens.
Diffstat (limited to 'Grammar.pp')
-rw-r--r-- | Grammar.pp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 [^'\\]+ |