Terminology

0 views
Skip to first unread message

RogerAlsing

unread,
Jun 11, 2008, 4:21:33 AM6/11/08
to GOLD Parsing System
This is not really a GP question more of a parsing question.

I'm currently reading the "Red dragon book" (Compiler techniques,
principles..)

I just want to get my head straight when it comes to the word "lexeme"

is the lexeme the actual "content" of a token?

pseudo:

<for> = for | für | foo

if I find a token containing any of the above words, the token would
be a "for" token and the "lexeme" of that token would be "for" , "für"
or "foo" ?

Have I got it right in that case?


(No academic background in the field so I just want to connect my own
made up words to the actual real words :-))

Dave Dolan

unread,
Jun 11, 2008, 4:31:39 PM6/11/08
to gold-pars...@googlegroups.com
You have it right, it's the text bits:
 
 
"The Lexeme is the block of text corresponding to the token"

--
---------------------------------------------------------------
Dave Dolan
Certified Computer Geek-inator
http://davedolan.com
dave....@gmail.com

RogerAlsing

unread,
Jun 13, 2008, 5:50:58 AM6/13/08
to GOLD Parsing System
Thanks :-)
> dave.do...@gmail.com- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages