[antlr-interest] Porting a runtime to Ada
Luke A. Guest
laguest at archangeli.co.uk
Tue May 22 15:31:18 PDT 2007
On Tue, 2007-05-22 at 07:51 -0700, Jim Idle wrote:
> I suggest that you have your streams return UTF-32 characters, which you
> should represent by the most sensible 32 bit type for the target
> language. This means that your input streams can be anything, so long as
> you can decode to UTF-32 and position to specific points in the stream
> (it is best to use pointers for things like UTF-8, to avoid having to
> traverse the actual string to get to character 'n'.
Ok. I'll look into it.
> However, do you have an absolute requirement to use Ada95 in actions, or
> just have callable lexers and parsers? You could just use the C target
> and link with libraries.
I could just use the C target and import it all into Ada, yeah. But it's
nicer to have an Ada target, that way you get the benefits of a strongly
More information about the antlr-interest