Using sidBison - sidprasad/sidbison GitHub Wiki

The sidBison instruction set is purposely small, and helps strengthen the abstraction barrier between the user and the Bison program. sidBison depends on the iBison system.

##Running sidBison

Given a Flex file lexer.l and a Bison file parser.y.

ibison -d parser.y
flex lexer.l   
gcc -c -fPIC lex.yy.c
gcc -shared -o lex.so lex.yy.o

Make sure LD_LIBRARY_PATH includes a directory in which lexer.so is available.

sidBison can now be run with the bison specification and lexer shared object as arguments.

$sidbison parser.y lex.so

For examples, see the Examples section.