Re: [Vala] lexical analysis using libvala
- From: Jim Peters <jim uazu net>
- To: "Victor D." <victor dramba cabanova info>
- Cc: vala-list gnome org
- Subject: Re: [Vala] lexical analysis using libvala
- Date: Sat, 18 Jun 2011 17:42:04 -0500
Victor D. wrote:
sorry to interfere, i might be naive, but i have a different view here
i would advise for an independent from-scratch parser, optimized for a dev
tool, for writing code, which is a bit different than for the compiler. the
parser has to be permissive, it has to figure out the best it can incomplete
and illegal structures, so that the code completion/highlight doesn't brake
all the time while you write.
This type of feature might also be useful in a compiler, so that it
can carry on compiling after an error without generating 100s of
spurious 'mismatched parens' type errors.
If it doesn't distort the job of libvala too much, maybe it could be
extended to cover the (modest) additional requirements of a syntax
highlighter, but that means someone taking the time to do patches and
get them approved and integrated.
I think that a flag that controls whether or not all comments are
stored in the AST would not create any significant overhead when
turned off for compiling.
Jim
--
Jim Peters (_)/=\~/_(_) jim uazu net
(_) /=\ ~/_ (_)
UazĂș (_) /=\ ~/_ (_) http://
in Peru (_) ____ /=\ ____ ~/_ ____ (_) uazu.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]