caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kuba Ober <kuba@mareimbrium.org>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Camelia progress - indenter (this time for real)
Date: Mon, 20 Oct 2008 09:07:10 -0400	[thread overview]
Message-ID: <200810200907.11437.kuba@mareimbrium.org> (raw)
In-Reply-To: <200810170956.00776.kuba@mareimbrium.org>

Replying to myself -- must be old age ;)

I know that the indenter support will be gone at least for the alpha version,
as the indenter needs a revamp -- the QSyntaxHighlighter machinery
can be (ab)used to modify the text in-place, and will most likely host
all of the indenter. Right now, indenter has a big bunch of regexps and
is a bit hard on the eyes. What I will do instead is to tokenize each
line and work off the token stream; I expect this will cut the code size
a lot.

The syntax highlighter has a notion of state for each line, and
the state of preceding line, and is automatically invoked by Qt whenever
the lines change. I have to check, but I think it is also invoked when the
state of the preceding line changes. So it's fairly easy to work with.

Anyway, the plan is not to drop features, so the final release will have
a hopefully nice indenter and whatnot.

Also note that I'm submitting everything to SVN pretty much as I go, and
I try to keep the code compileable, so if anyone feels like contributing,
let me know. It may be easier to work on it once it all gets to compile,
which is still one file away and I will of course brag once it hits
the "it compiles and pretends to run" mark.

Cheers, Kuba


  parent reply	other threads:[~2008-10-20 13:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 13:55 Camelia progress Kuba Ober
2008-10-17 14:05 ` [Caml-list] " David Teller
2008-10-20 13:01   ` [Caml-list] Camelia progress, indenter Kuba Ober
2008-10-20 13:22     ` David Teller
2008-10-20 13:35       ` Kuba Ober
2008-10-20 14:46         ` Romain Bardou
2008-10-20 20:02           ` Kuba Ober
2008-10-21  8:35             ` Romain Bardou
2008-10-17 15:13 ` Camelia progress Sylvain Le Gall
2008-10-17 20:42 ` [Caml-list] " Andrej Bauer
     [not found] ` <e2d02be30810180555r602c5977n20122bbd9dbbedd9@mail.gmail.com>
2008-10-20 12:16   ` Kuba Ober
2008-10-20 13:07 ` Kuba Ober [this message]
     [not found]   ` <e2d02be30810201102p79da38d4r6b15154aa4cce0c9@mail.gmail.com>
2008-10-20 19:59     ` [Caml-list] Camelia progress - indenter (this time for real) Kuba Ober

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810200907.11437.kuba@mareimbrium.org \
    --to=kuba@mareimbrium.org \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).