[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parser
From: |
Marco Gerards |
Subject: |
Re: Parser |
Date: |
Sat, 07 Mar 2009 12:15:39 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Kevin Lacquement <address@hidden> writes:
> Again looking at the script parser, I notices that it uses a
> Yacc-generated parser, but a hand-written tokenizer. Is there a reason
> that it doesn't use Lex? Is it due to external dependencies, and if so,
> is there a way to recreate these deps (library or whatever) within the
> constraints of the bootloader?
Right, and I really hate the handwritten parser. It is easy to
cleanly use bison. Lex, OTOH, isn't easy and clean to use. IIRC it
depended on file IO, etc. If you know a *clean* way to deal with
this, I would favor it. Making all kinds of dirty stubs is something
I don't really like.
--
Marco
- Parser, Kevin Lacquement, 2009/03/03
- Re: Parser,
Marco Gerards <=