Game Development Community

Scripting Engine Documentation

by Bryan "daerid" Ross · in Torque Game Engine · 01/03/2002 (10:39 am) · 2 replies

I'm looking into modifying the scripting language a bit, but currently there's no documentation about how the scripting engine parses and translates the script code.

I know that it was done using lex & yacc, but I'm not quite proficient enough to just dig in and translate the scan.l and gram.y files.

#1
01/03/2002 (11:17 am)
To really modify the syntax of the script compiler you will need to have a solid understanding of lex and yacc. A good reference is the O'Reilly book: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1936
#2
01/03/2002 (12:42 pm)
Ok, so basically, after I get a grip on that, then I can just go through scan.l and gram.y, mess around with 'em, run 'em through lex & yacc ( or flex & bison, whatevah ), and that should do it?


Also, what about the format for .dso files? is that around anywhere? I don't mind digging through the code to figure it out, I just didn't wanna go and do work that's already been done.