This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
The recent discussion about parser performance for CTAX has bought to mind something that was suggested a few months ago for I think autogen. Rather than writing the whole parser/lexer in scheme, why not use the standard free tools (flex/bison or lex/yacc), but have it emit guile code that uses say the gh_ interface. Surely the startup and runtime performance will be better. Furthermore, it should ease code re-use, at least for those languages which have an existing parser written this way; only the code generation would need to be changed. The main difficulty that I can see is that flex generates code that is not re-entrant; it might be hard to mix several translators Julian Satchell <satchell@dera.gov.uk>