[Top][All Lists]

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

M4, "[", and %destructor

From: Joel E. Denny
Subject: M4, "[", and %destructor
Date: Tue, 19 Jul 2005 01:28:30 -0400 (EDT)

For this bison spec:

  %union { char * ptr; }
  %token <ptr> BRACKET "["
  %destructor { delete $$; } BRACKET
  start: BRACKET;

bison 2.0 fails with:

  NONE:0: /usr/local/bin/m4: ERROR: EOF in string
  bison: subsidiary program `/usr/local/bin/m4' failed (exit status 1)

bison 1.875 does not fail.


reply via email to

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