Advertisement

Scriping engine

Started by July 06, 2001 07:20 PM
4 comments, last by helpo 23 years, 7 months ago
How would i go as to building a scripting engine? Would i like have a big switch and then just send it commands? I don''t realy even know where to start. Does anyone know of a good tutorial for scripting?
goto flipcode there is an very good series.

And schreach on these forum I post some other link a month ago.
an url with peroxide in.

Why English rules?? C pas très malin tout ça!
_______________
Jester, studient programmerThe Jester Home in French
Advertisement
I tried going to route of reading the tuts online, but then I just got fed up, and I didn''t want to use lex, or yacc, and I wrote my scripting language Xic Script by hand, from scratch. The tuts didnt help me much. I''m not telling you to start from scratch and do it by hand. But I am telling you that..... I dont even know what my f*cking point is. I''m just depressed because my program (top secret program) has a design flaw that I never thought of, now I have to change it''s entire structure, god damnit. Just Good Look.

Reality Makes Me XIC
I don''t do spelling, I hack code: passion is my feul. Use my programs, experience genius.
http://www.x-i-c.com/
I am XiCI don't do talk, I code: passion is my feul. Use my programs, experience XiC. http://www.x-i-c.com/
Have a look at www.peroxide.dk, it has an excellent tutorial series on the subject, its not finished yet but there should be more than enough there to get you started.

BloatWare
Well, since you''ll need a lexical analyser and a parser, at least you could always type "info bison/yacc" and "info flex/lex", if you have a decent UNIX or UNIX-like OS that is

They are great tools, btw, I see no reason you shouldn''t use them. Makes the whole process a little more less tedious.
Do you actually want to write a scripting engine, or do you just want scripting in your game? There are many scripting engines already out there that you can just compile directly into your project. Personally I would recommend you checked out LUA.

Homepage: http://www.tecgraf.puc-rio.br/lua/

This topic is closed to new replies.

Advertisement