search for: yyerror

Displaying 20 results from an estimated 28 matches for "yyerror".

Did you mean: myerror
2004 Oct 13
1
[LLVMdev] Compiling TableGen with Visual Studio
...y files contain cpp code and should really be named .lpp and .ypp) and the tools behave slightly different in this setting. The problems are in FileLexer.l: extern "C" int yywrap() which should be (according to VS): extern "C" int yywrap ( void ) and in FileParser.y: int yyerror(const char *ErrorMsg) which should be (again according to VS): void yyerror(char *ErrorMsg) in the second case I have to remove the 'const' qualifier because bison adds the line 'extern void yyerror(char* s);' to the generated file. I would appreciate some input on how we can f...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
..., 51 deletions(-) diff --git a/builder/index-parse.y b/builder/index-parse.y index a8d2f62..dee2aec 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -24,9 +24,14 @@ #include <string.h> #include "index-struct.h" +#include "index-parse.h" -extern void yyerror (const char *); -extern int yylex (void); +#define YY_EXTRA_TYPE struct parse_context * + +extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg); +extern int yylex (YYSTYPE * yylval, YYLTYPE * yylloc, yyscan_t scanner); +extern void scanner_init (y...
2014 Apr 02
2
[PATCH] builder: better handle some index parsing errors
...iff --git a/builder/index-scan.l b/builder/index-scan.l index 073d85f..e3fe377 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -29,8 +29,6 @@ #define YY_EXTRA_TYPE struct parse_context * #define YY_USER_ACTION yylloc->first_line = yylloc->last_line = yylineno; -extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg); - %} %option nounput @@ -110,8 +108,7 @@ extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *c /* anything else is an error */ . { - yyerror (yylloc, yyscanner, yyextra, "...
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...@\"[^\"]*\" if (CurPtr[0] == '"') { ++CurPtr; - + while (1) { int CurChar = getNextChar(); - - if (CurChar == EOF) { + + if (CurChar == EOF) { GenerateError("End of file in global variable name"); return YYERROR; } @@ -269,30 +269,31 @@ int LLLexer::LexAt() { } } } - + // Handle GlobalVarName: @[-a-zA-Z$._][-a-zA-Z$._0-9]* - if (isalpha(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == '$' || + if (isalpha(CurPtr[0]) || CurPtr[0] == '-' || CurPtr[0] == ...
2014 Jan 22
1
[PATCH] builder: fix small regression in subkey parsing
...he value to be skipped if the key has a subkey. --- builder/index-scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/index-scan.l b/builder/index-scan.l index 7a9618f..e43f82e 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -65,7 +65,7 @@ extern void yyerror (const char *); if (yytext[i] == '[') { size_t j = strcspn (yytext+i+1, "]"); yylval.field->subkey = strndup (yytext+i+1, j); - i += 1+j+2; + i += 1+j+1;...
2004 Aug 31
1
[LLVMdev] More configure problems
...are: > >/*----------------------------------------------------. >| yyerrlab1 -- error raised explicitly by an action. | >`----------------------------------------------------*/ >yyerrlab1: > > /* Suppress GCC warning that yyerrlab1 is unused when no action > invokes YYERROR. */ >#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) > __attribute__ ((__unused__)) >#endif > > goto yyerrlab2; <== line 2043 > >I'm using bison 1.875. But it worked the last time, so I don't know why >it doesn't...
2005 May 12
1
ast_yyerror - 'space' in Caller-ID - string comparison
...ta looks like --> "638936" <638936> therefore the checking of both "Name" and <number>. -- Executing NoOp("SIP/292951-b11f", "FWD SIP: "Mark Elkins" <638936>") in new stack May 12 14:36:59 WARNING[28824]: ast_expr.y:486 ast_yyerror: ast_yyerror(): syntax error: parse error; Input: Mark Elkins = 638936 ^^^^ ^ -- Executing GotoIf("SIP/292951-b11f", "Mark?3:4") in new stack -- Goto (sipdef,s,4) -- Executing SetCIDNum("SIP/292951-b11f", "87638936") in new stack -...
2009 Jun 18
1
R_parseVector and syntax error [was: error messages while parsing with rniParse]
Hello, [I'm redirecting this here from stats-rosuda-devel] When parsing R code through R_parseVector and the code generates an error (syntax error), is there a way to grab the error. It looks like yyerror populates the buffer "R_ParseErrorMsg", but then the variable is not part of the public api. Would it be possible to add yet another entry point to the parser that would basically wrap R_parseVector so that it would have an extra char* argument that would bring back the error message...
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
...k of Ferret / aaf usage (also our first week of Ferret / aaf usage), I have received 8 messages stating that our app encountered a Ferret::QueryParser::QueryParseException. For instance: A Ferret::QueryParser::QueryParseException occurred in foo#search: Error occurred in src/q_parser.y:279 - yyerror couldn''t parse query "com -- 404". Error message was syntax error /where/gems/are/stored/gems/ferret-0.10.11/lib/ferret/index.rb:709 in ''parse'' (thanks to the excellent exception_notification plugin for what you see above) So I did a little research...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
.../ini_reader.ml | 6 +++--- builder/ini_reader.mli | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/builder/index-parse.y b/builder/index-parse.y index 310870d..7ddef53 100644 --- a/builder/index-parse.y +++ b/builder/index-parse.y @@ -150,12 +150,14 @@ emptylines: void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg) { - fprintf (stderr, "%s%s%s%ssyntax error at line %d: %s\n", + fprintf (stderr, "%s%s%s%ssyntax error at line %d: %s%s%s\n", context->program_name ? context->program_name :...
2004 Aug 31
2
[LLVMdev] More configure problems
...he offending lines bison generated are: /*----------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: /* Suppress GCC warning that yyerrlab1 is unused when no action invokes YYERROR. */ #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) __attribute__ ((__unused__)) #endif goto yyerrlab2; <== line 2043 I'm using bison 1.875. But it worked the last time, so I don't know why it doesn't work now. Deleting the __attribu...
2006 Dec 08
6
QueryParser Exception Handling Problem
...yParser.html :handle_parser_errors => true is enabled by default and seems to be in acts_as_ferret in class_methods.rb of the plugin. However, when I pass a special character as a query (e.g., !, -, <, >, etc) it throws an error and pukes. -- snip -- Error occured in src/q_parser.y:279 - yyerror couldn''t parse query ``<script>''''. Error message was syntax error -- end snip -- Anyone know what''s going on here? -- Posted via http://www.ruby-forum.com/.
2012 Jul 02
0
[klibc:master] [ARITH] Avoid imaxdiv when only one of the results is wanted
...h/arith_yacc.c +++ b/usr/dash/arith_yacc.c @@ -94,22 +94,13 @@ static inline int higher_prec(int op1, int op2) static intmax_t do_binop(int op, intmax_t a, intmax_t b) { -#ifdef HAVE_IMAXDIV - imaxdiv_t div; -#endif - switch (op) { default: case ARITH_REM: case ARITH_DIV: if (!b) yyerror("division by zero"); -#ifdef HAVE_IMAXDIV - div = imaxdiv(a, b); - return op == ARITH_REM ? div.rem : div.quot; -#else return op == ARITH_REM ? a % b : a / b; -#endif case ARITH_MUL: return a * b; case ARITH_ADD:
2004 Aug 31
0
[LLVMdev] More configure problems
...> > /*----------------------------------------------------. > | yyerrlab1 -- error raised explicitly by an action. | > `----------------------------------------------------*/ > yyerrlab1: > > /* Suppress GCC warning that yyerrlab1 is unused when no action > invokes YYERROR. */ > #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) > __attribute__ ((__unused__)) > #endif > > goto yyerrlab2; <== line 2043 > > I'm using bison 1.875. But it worked the last time, so I don't know why > it doesn...
2004 Aug 31
0
[LLVMdev] More configure problems
On Mon, 30 Aug 2004 20:48:45 -0700 Jeff Cohen <jeffc at jolt-lang.org> wrote: > When I ran configure after updating, I get various errors. First: > > % ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc > checking for a BSD-compatible install... /usr/bin/install -c > checking build system type... i386-unknown-freebsd5.2.1 > checking host system
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...ds->value); + Store_field (v, 2, sv); Store_field (fv, j, v); /* assign to return array of fields */ } diff --git a/builder/index-scan.l b/builder/index-scan.l index 9a6a0e3..7a9618f 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -58,10 +58,17 @@ extern void yyerror (const char *); /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n { - size_t i = strcspn (yytext, "="); + size_t i = strcspn (yytext, "=[");...
2004 Aug 31
4
[LLVMdev] More configure problems
When I ran configure after updating, I get various errors. First: % ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i386-unknown-freebsd5.2.1 checking host system type... i386-unknown-freebsd5.2.1 checking target system type... i386-unknown-freebsd5.2.1 test: Unknown: bad
2014 Jan 21
2
Re: [PATCH] builder: proper consider subkeys in index files
On Tuesday 21 January 2014 16:37:20 Richard W.M. Jones wrote: > On Tue, Jan 21, 2014 at 05:18:27PM +0100, Pino Toscano wrote: > > + sv = caml_copy_string (fields->subkey ? fields->subkey : ""); > > > > Store_field (v, 1, sv); > > Heh, sure would be nice if this was an option type :-) > > I believe the following should work: > >
2014 Jan 21
3
[PATCH] builder: proper consider subkeys in index files
...ds->value); + Store_field (v, 2, sv); Store_field (fv, j, v); /* assign to return array of fields */ } diff --git a/builder/index-scan.l b/builder/index-scan.l index 9a6a0e3..7a9618f 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -58,10 +58,17 @@ extern void yyerror (const char *); /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n { - size_t i = strcspn (yytext, "="); + size_t i = strcspn (yytext, "=[");...
2015 Jul 08
7
[PATCH 0/6] RFC: basic subscription-manager support in virt-customize
Hi, this series introduces a basic support for registering/attaching/unregistering RHEL guests using subscription-manager, so it is possible to do for example: $ cat <<EOF > sm.conf [general] username=user password=pass [attach-0] pool=ID EOF $ virt-customize -a rhel-guest.qcow2 \ --sm-config sm.conf --sm-register --sm-attach 0 \ --install pkg1 --install pkg2