help-bison
[Top][All Lists]
Advanced

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

Recognize Stings Tokens.


From: Jester Underrun
Subject: Recognize Stings Tokens.
Date: Sat, 22 Dec 2007 19:20:54 +0100

Hi

I'm newbie in bison. I have a grammar with string tokens like this:

B0: 'token_str1' B1
B1: B2 | B3
B2: 'token_str2' | 'token_str3' B3
.....

'token_str#' is my token string and is only a lower case string with no
numbers.  'token_str#' can be any string, I assume that each 'token_str#' in
my grammar is correctly.

How I can write a yylex function to retrieve this tokens?

Thanks for any suggestion or example.

Bye


reply via email to

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