[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Line lexer...
Uhm good point. Maybe I'm using the gold hammer here as I'm very
used to work with AST's! The facts are that we're not the only entity
that build the strings. We kind of publish the format and others'
implementations not always follow it to the letter, the constraints at
the semantic level are kind of weird. I feel a tree representation would
be nice.
--
jacg
-----Mensaje original-----
De:
sablecc-discussion-bounces+cordobaj=burodecredito.com.mx@xxxxxxxxxxxxxxx
rg
[mailto:sablecc-discussion-bounces+cordobaj=burodecredito.com.mx@xxxxxxx
ablecc.org] En nombre de Rowan Worth
Enviado el: Martes, 26 de Agosto de 2008 09:57 p.m.
Para: sablecc-discussion@xxxxxxxxxxxxxxxxx
Asunto: Re: Line lexer...
On Tue, Aug 26, 2008 at 11:21:09PM +0800, Javier Abdul Cordoba Gandara
wrote:
>
> Hi all. I've been using SableCC for quite some time now. Now
> I'm facing a project where I need to process lines of data that
> represent transactions in very fixed formats (spaces are showed only
> for simplicity):
>
> FI 0001a 0104abcde 0209123456789 0302aa SE 0002ab
I'm presuming a format like that isn't hand edited. Why on earth would
you be worried about a lexer or parser (or XML!) when you have such a
simple unmarshalling job? -Rowan
_______________________________________________
SableCC-Discussion mailing list SableCC-Discussion@xxxxxxxxxxxxxxxxx
http://lists.sablecc.org/listinfo/sablecc-discussion