]> git.draconx.ca Git - cdecl99.git/blobdiff - src/parse.y
libcdecl: Remove magic T_ENGLISH token.
[cdecl99.git] / src / parse.y
index f507d5b6ee106e163f7c98a0e31150c906672efa..fd5776ede27596b488d34a7cf113811113eade9a 100644 (file)
@@ -188,7 +188,6 @@ static struct cdecl *insert_identifier(struct cdecl *decl, char *ident)
 
 /* Magic tokens */
 %token T_LEX_ERROR
-%token T_ENGLISH
 
 %token <strval> T_IDENT "identifier"
 %token <uintval> T_UINT "integer constant"
@@ -274,8 +273,8 @@ static struct cdecl *insert_identifier(struct cdecl *decl, char *ident)
 
 %%
 
-input: T_ENGLISH english {
-       *out = $2;
+input: english {
+       *out = $1;
 } | declaration {
        *out = $1;
 };