diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-08 14:34:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-08 14:34:03 +0000 |
commit | 616b1d78400800215b119c9ea8516777dbcee41d (patch) | |
tree | b076be2f86714633414f0ab415e9f5f27feee649 /src/monkey | |
parent | 003418574034d78318d3499c644ae675f7f4899c (diff) | |
download | gnunet-616b1d78400800215b119c9ea8516777dbcee41d.tar.gz gnunet-616b1d78400800215b119c9ea8516777dbcee41d.zip |
more
Diffstat (limited to 'src/monkey')
-rw-r--r-- | src/monkey/seaspider/C.jj | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/monkey/seaspider/C.jj b/src/monkey/seaspider/C.jj index 781c516bb..9173c12e7 100644 --- a/src/monkey/seaspider/C.jj +++ b/src/monkey/seaspider/C.jj | |||
@@ -45,6 +45,10 @@ | |||
45 | - Support certain gcc-isms (unsigned long long, 33LL, etc.) | 45 | - Support certain gcc-isms (unsigned long long, 33LL, etc.) |
46 | - No support for certain older C constructs | 46 | - No support for certain older C constructs |
47 | - Support for magic "GNUNET_PACKED" construct (extra "IDENTIFIER" in struct) | 47 | - Support for magic "GNUNET_PACKED" construct (extra "IDENTIFIER" in struct) |
48 | |||
49 | 8/11/10: Modified some more by Christian Grothoff | ||
50 | - support for arguments without variable names (in particular, just 'void') | ||
51 | - support for string concatenations | ||
48 | */ | 52 | */ |
49 | 53 | ||
50 | PARSER_BEGIN(CParser) | 54 | PARSER_BEGIN(CParser) |
@@ -137,7 +141,7 @@ TOKEN : { | |||
137 | "'" | 141 | "'" |
138 | > | 142 | > |
139 | | < STRING_LITERAL: | 143 | | < STRING_LITERAL: |
140 | "\"" | 144 | ("\"" |
141 | ( (~["\"","\\","\n","\r"]) | 145 | ( (~["\"","\\","\n","\r"]) |
142 | | ("\\" | 146 | | ("\\" |
143 | ( ["n","t","b","r","f","\\","'","\""] | 147 | ( ["n","t","b","r","f","\\","'","\""] |
@@ -146,7 +150,7 @@ TOKEN : { | |||
146 | ) | 150 | ) |
147 | ) | 151 | ) |
148 | )* | 152 | )* |
149 | "\"" | 153 | "\"")+ |
150 | > | 154 | > |
151 | } | 155 | } |
152 | 156 | ||
@@ -575,6 +579,9 @@ void AssignmentOrTypeExpression() : {} | |||
575 | 579 | ||
576 | void Constant() : {} | 580 | void Constant() : {} |
577 | { | 581 | { |
578 | <INTEGER_LITERAL> | <FLOATING_POINT_LITERAL> | <CHARACTER_LITERAL> | <STRING_LITERAL> | 582 | <INTEGER_LITERAL> | |
583 | <FLOATING_POINT_LITERAL> | | ||
584 | <CHARACTER_LITERAL> | | ||
585 | (<STRING_LITERAL>)+ | ||
579 | } | 586 | } |
580 | 587 | ||