From: Erik de Castro Lopo <ocaml-erikd@mega-nerd.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Parser state variables
Date: Tue, 1 Nov 2005 09:32:14 +1100 [thread overview]
Message-ID: <20051101093214.05fc8d96.ocaml-erikd@mega-nerd.com> (raw)
In-Reply-To: <4361C38B.8090309@inria.fr>
Alain Frisch wrote:
> Another one is to make semantic actions return functions which take the
> state as an argument.
I've also used a variation on this which places a filter function
with signature
filter : state -> token -> token
between the lexer and the parser and modifies the stream of tokens
as required by the current state.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"Death is perhaps too easy" -- Iqbal Sacranie in 1989 about
Salman Rushdie, author of "The Satanic Verses". Sacranie
received a knighthood in 2005 as the face of 'moderate'
British Islam. He has never disowned his earlier statement.
prev parent reply other threads:[~2005-10-31 22:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-27 7:35 skaller
2005-10-28 6:22 ` [Caml-list] " Alain Frisch
2005-10-28 7:11 ` skaller
2005-10-31 22:32 ` Erik de Castro Lopo [this message]
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=20051101093214.05fc8d96.ocaml-erikd@mega-nerd.com \
--to=ocaml-erikd@mega-nerd.com \
--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).