On Jun 20, 2009, at 9:08 AM, AlexanderPD wrote:
>
> Sure, this is an example of input:
>
> Automa : Automa_anbn
> {1,2,}
> {a,b}
> {$,N}
> {($,a) >(1,N);(N,a) >(1,NN);(N,b) >(2,#)}:
> {(N,b) >(2,#)}.
>
> i realize that i can't use a regular expression as token.. i must
> study more
> javacc :P
Cool, yeah, you may have better results if you make your tokenizer a
bit simpler - just separating ($,a) into
LPAREN,DOLLAR,COMMA,ALPHA,RPAREN - and letting the parser handle the
higher level structure.
Yours,
Tom
http://generatingparserswithjavacc.com/---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...