Greetings all, How useful is the new functionality of the config parser? It seems not to be documented in confindex.html so users may not actually be able to make use of it...
Could someone who knows the synatx of the config file please update confindex.html so we can all consider Gilles's suggestion of rewriting the parser and/or lexer in C++? As well as reducing the learning curve, this could reduce the size of each executable by up to 300kB. Happy New Year, Lachlan On Thu, 20 Nov 2003 03:51, Gilles Detillieux wrote: > If > there are no currently active developers who are comfortable enough > in lex/flex to address this issue, then we may want to reconsider > the need for using this tool in the first place. What we have now > seems to be pretty unmaintainable. Am I missing something here, or > is lex really overkill for this parser? I don't think the lexical > analysis portion of the config parsing is particularly complex, and > could probably be done quite easily, and with more control, in > C/C++ code. If we still need yacc/bison for the higher-level > parsing, that's another matter, but at least we seem to need more > control over what gets fed into that parsing engine. > > > On Wed, 19 Nov 2003 04:50, Gilles Detillieux wrote: > > > I don't see anything in HtConfiguration.cc, conf_lexer.lxx, or > > > conf_parser.yxx that would allow us to intercept the > > > unterminated last line and add the newline to it, so it would > > > be taken by the lexer to be a full line. That means the only > > > way to deal with this, short of telling users "tough luck, just > > > properly terminate your files," would be to rewrite the grammar > > > in conf_lexer.lxx to be less dependent on newlines. Maybe > > > define an EOL character class that can be \n or EOF, and use > > > that instead of \n everywhere? But would this break the > > > current EOF handling, or something else? I don't understand > > > lex/flex enough to venture into this. -- [EMAIL PROTECTED] ht://Dig developer DownUnder (http://www.htdig.org) ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ ht://Dig Developer mailing list: [EMAIL PROTECTED] List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-dev