Utiliser le codage 0 pour le token EOF

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2001 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 1998-06-29 08:49:53 +00:00
parent 78194d63d1
commit dfeaa0596e
1 changed files with 2 additions and 0 deletions

View File

@ -857,6 +857,8 @@ void declare_tokens(int assoc)
bp->prec = prec;
}
if (strcmp(bp->name, "EOF") == 0)
bp->value = 0;
c = nextc();
if (c == EOF) unexpected_EOF();