From 616b1d78400800215b119c9ea8516777dbcee41d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 8 Nov 2010 14:34:03 +0000 Subject: [PATCH] more --- src/monkey/seaspider/C.jj | 13 ++++++++++--- 1 file 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 @@ - Support certain gcc-isms (unsigned long long, 33LL, etc.) - No support for certain older C constructs - Support for magic "GNUNET_PACKED" construct (extra "IDENTIFIER" in struct) + +8/11/10: Modified some more by Christian Grothoff +- support for arguments without variable names (in particular, just 'void') +- support for string concatenations */ PARSER_BEGIN(CParser) @@ -137,7 +141,7 @@ TOKEN : { "'" > | < STRING_LITERAL: - "\"" + ("\"" ( (~["\"","\\","\n","\r"]) | ("\\" ( ["n","t","b","r","f","\\","'","\""] @@ -146,7 +150,7 @@ TOKEN : { ) ) )* - "\"" + "\"")+ > } @@ -575,6 +579,9 @@ void AssignmentOrTypeExpression() : {} void Constant() : {} { - | | | + | + | + | + ()+ } -- 2.25.1