Skip to content
Snippets Groups Projects
Commit 9ce6b646 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Semicolons are now allowed before the first definition in a program.

Fixes [bug 369].

Rev: src/language.yacc:1.212
parent a915885c
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
/* This is the grammar definition of Pike. */ /* This is the grammar definition of Pike. */
#include "global.h" #include "global.h"
RCSID("$Id: language.yacc,v 1.211 2000/09/05 19:33:24 grubba Exp $"); RCSID("$Id: language.yacc,v 1.212 2000/09/20 13:22:51 grubba Exp $");
#ifdef HAVE_MEMORY_H #ifdef HAVE_MEMORY_H
#include <memory.h> #include <memory.h>
#endif #endif
...@@ -330,15 +330,11 @@ all: program { YYACCEPT; } ...@@ -330,15 +330,11 @@ all: program { YYACCEPT; }
/* | error TOK_LEX_EOF { YYABORT; } */ /* | error TOK_LEX_EOF { YYABORT; } */
; ;
program: program def optional_semi_colons program: program def
/* | error { yyerrok; } */ | program ';'
| /* empty */ | /* empty */
; ;
optional_semi_colons: /* empty */
| optional_semi_colons ';'
;
string_constant: string string_constant: string
| string_constant '+' string | string_constant '+' string
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment