Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.compilers.tools.javacc > #9

.. can never be matched as ..

Newsgroups comp.compilers.tools.javacc
Date 2013-05-17 09:25 -0700
Message-ID <a97fb75d-65e6-404e-be08-d1b4c83ece54@googlegroups.com> (permalink)
Subject .. can never be matched as ..
From Walter Milner <w.w.milner@googlemail.com>

Show all headers | View raw


My grammar includes:
TOKEN : { < CONSTANT : (["0"-"9"])+ > }
TOKEN : { < VARIABLE : ["x"-"z"] > }
TOKEN : { < TERM :   <CONSTANT> | <VARIABLE>  > }
but I get warning Regular expression choice : CONSTANT can never be matched as : TERM
Why not?
How come
12
would not be a term, since it is a constant?
Aplogies for my lack of a brain

Back to comp.compilers.tools.javacc | Previous | NextNext in thread | Find similar


Thread

.. can never be matched as .. Walter Milner <w.w.milner@googlemail.com> - 2013-05-17 09:25 -0700
  Re: .. can never be matched as .. bbllatwork@gmail.com - 2013-06-26 01:54 -0700

csiph-web