lex & yacc under visual studio 2008 - anyone ?

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

lex & yacc under visual studio 2008 - anyone ?

Post by frag.machine »

I am trying to learn about lex & yacc and I would like to work with it under VS2008, but after googling for a while haven't found any useful info in how to setup things. Anyone already did that ? Any tips ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
revelator
Posts: 2621
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Post by revelator »

definatly not a guru in that but i can give a hint at what to look for.

tenebraes particle system used flex lexers find the file lex_part.l in the source.

im not certain how the lexer parses the info in the .l file (really not alot of code in it) but it expands into a rather massive lex.yy.c if you run a win32 lex.exe on it.

the idea aint bad since it opens up the possibility of creating dynamically updated code, can probably be used for many other things such as setting flags on things normally hardcoded in quake.

i do have a win32 lex.exe if you have trouble finding one.
Post Reply