Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Storing tokens with flex & bison
I'm not sure if this is the proper forum for this kind of question, but I
can't find any mailing lists for lex & yacc, and it is a MUD I'm
developing...
I want to write a MUD server, and for this I want to develop a LPC-like
interpreting programming (or call it scripting if you like) language with
flex and bison.
When flex reads a file, would it be a good idea to store the tokens
returned from yylex() in a list? I was thinking one list for each function
definition, and then having bison read from that list when executing that
function, instead of reading directly from the file using flex?
If so, how would I get yylex() to return tokens from my list instead of
tokens from the file? Or would that be going about it the wrong way?
Or should I simply read the function definition from the file with flex
each time I want to execute the function?
Maybe someone could point me to a lex & yacc tutorial that includes
writing an interpreted language that allowes user defined functions
written in that language, since that is basically what I'm trying to do
myself.
TIA.
--
-=-=- Christer Enfors -=-=-
"I do my music in pure machine code using an assembler."
- Rob Hubbard
_______________________________________________
MUD-Dev maillist - MUD-Dev#kanga,nu
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- [MUD-Dev] OS Inspiration,
Phillip Lenhardt philen#funky,monkey.org, Sun 02 Jan 2000, 01:05 GMT
- [MUD-Dev] JavaWorld: Build an object database,
J C Lawrence claw#kanga,nu, Sat 01 Jan 2000, 20:51 GMT
- [MUD-Dev] Muq update,
Cynbe ru Taren cynbe#muq,org, Sat 01 Jan 2000, 20:14 GMT
- [MUD-Dev] Storing tokens with flex & bison,
Christer Enfors enfors#swipnet,se, Fri 31 Dec 1999, 21:22 GMT
- Re: [MUD-Dev] Storing tokens with flex & bison,
Rahul Sinha rsinha#glue,umd.edu, Fri 31 Dec 1999, 23:12 GMT
- Re: [MUD-Dev] Storing tokens with flex & bison,
Chris Turner christ#rd,bbc.co.uk, Sat 01 Jan 2000, 19:12 GMT
- Re: [MUD-Dev] Storing tokens with flex & bison,
Per Vognsen vognsen#mindless,com, Sat 01 Jan 2000, 19:12 GMT
[ Other Periods
| Other mailing lists
| Search
]