Game Development Community

Question for one of the Employees

by Bryan "daerid" Ross · in Torque Game Engine · 04/24/2002 (2:43 pm) · 4 replies

How much different is the Torque Scripting engine from the T1 scripting engine? Are the basic concepts the same (built using lex/yacc, "compiled" into instructions residing in memory, etc)? Or is it a whole new engine?

#1
04/24/2002 (3:39 pm)
The Torque yacc grammar is based on the T1 grammar. In T1, the syntax tree itself was stored in memory for each script and evaluated directly. In Torque the syntax tree is compiled into an instruction stream and then executed by the compiled evaluator.
#2
04/24/2002 (9:02 pm)
Cool! Thanks =)

Herm.. so it would be safe to assume that comments in T1 were never part of the execution tree?
#3
04/25/2002 (10:24 am)
Comments are stripped by the lex scanner. They never make it into the syntax tree at all. (This is true for T1, T2 and Torque)
#4
04/27/2002 (2:19 pm)
Thx! :)