[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing token "]" bug

From: Hans Aberg
Subject: Missing token "]" bug
Date: Fri, 11 Jul 2003 14:56:42 +0200

In Bison 1.75 (and I can't try a later version), if I use
  %token left_bracket_key "["
  %token right_bracket_key "]"
that works just fine. But if I change that to
  %token left_bracket_key "["
  %token right_bracket_key "foo"
so that "]" is missing, then I get the error message:
  Error   : Bison Compiler-Compiler
  NONE:0: m4: ERROR: EOF in string

If you can reproduce this error, then there is something wrong with the way
Bison encapsulates strings before handing them over to M4.

I arrived at the problem by using an additional token
  %token substitution_begin_key "~["
but still want to to use a closing "]". Then I land on the problem above as
not every "...[..." in the token declaration has a matching "...]...".

  Hans Aberg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]