Utiliser le codage 0 pour le token EOF
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2001 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
78194d63d1
commit
dfeaa0596e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue