Implementing eval and load functions inside a scripting engine with Flex and Bison.
- by Simone Margaritelli
Hy guys, i'm developing a scripting engine with flex and bison and now
i'm implementing the eval and load functions for this language.
Just to give you an example, the syntax is like :
import std.*;
load( "some_script.hy" );
eval( "foo = 123;" );
println( foo );
So, in my lexer i've implemented the function :
void hyb_parse_string( const…