This is an old revision of
FlexandBison from 2007-04-02 11:18:13.
Flex Build Documentation
XQilla uses a patched version of Flex for supporting unicode. If the lexer is modified (xqilla/src/lexer/XQLexer.l) then you will need the modified flex so that you can rebuild the lexer.
Simple Instructions for Flex
- Download the 2.5.4a version of Flex from the Flex project page (http://flex.sourceforge.net/∞)
- Decompress the Flex archive
- Save the patch file found at http://software.decisionsoft.com/pathanBuildInstructions.html#depth_lex∞ into the directory where Flex was decompressed to
- Run the patch by typing:
patch -p1 < flex-2.5.4a-unicode-patch
- Build Flex folowing the instructions found in the INSTALL file:
- You can now run the patched Flex on the XQLexer.l file:
-Change into the directory that contains the XQLexer.l file:
cd ~/xqilla/src/lexer
-Run the modified version of Flex and not a Flex that may be in your path(the -U indicates unicode):
../../../flex*/flex -U XQLexer.l -o XQLexer_new.cpp
- Flex should take anywhere from 5 to 20 minutes to complete depending on the speed of your computer
- Replace XQLexer.cpp with the file you just produced XQLexer_new.cpp
Simple Instructions for Bison
CategoryDocumentation
There are 3 comments on this page. [Display comments]