comp.lang.ada
 help / color / mirror / Atom feed
* TXL Grammar for Ada 2005
@ 2010-05-17 22:18 Bruno Le Hyaric
  2010-05-18  0:58 ` Adam Beneschan
  0 siblings, 1 reply; 6+ messages in thread
From: Bruno Le Hyaric @ 2010-05-17 22:18 UTC (permalink / raw)


Hi every body,

I've recently made up a new grammar for Ada based on the great
language manipulation tool : TXL (http://www.txl.ca).

http://github.com/bu2/ada-2005-txl-grammar

The grammar is currently at an early stage. It permits to parse full
Ada 2005 following LRM standard but still only provides parsing trees.

AST coming soon and even more...


Comments are welcome!


Bruno Le Hyaric.
http://bruno-lehyaric.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: TXL Grammar for Ada 2005
  2010-05-17 22:18 TXL Grammar for Ada 2005 Bruno Le Hyaric
@ 2010-05-18  0:58 ` Adam Beneschan
  2010-05-18 14:23   ` Bruno Le Hyaric
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Beneschan @ 2010-05-18  0:58 UTC (permalink / raw)


On May 17, 3:18 pm, Bruno Le Hyaric <bruno.lehya...@gmail.com> wrote:
> Hi every body,
>
> I've recently made up a new grammar for Ada based on the great
> language manipulation tool : TXL (http://www.txl.ca).
>
> http://github.com/bu2/ada-2005-txl-grammar
>
> The grammar is currently at an early stage. It permits to parse full
> Ada 2005 following LRM standard but still only provides parsing trees.
>
> AST coming soon and even more...
>
> Comments are welcome!

Well, I would hope so.  A parser that didn't handle comments in Ada
source would be pretty unusable.

                            -- Adam




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: TXL Grammar for Ada 2005
  2010-05-18  0:58 ` Adam Beneschan
@ 2010-05-18 14:23   ` Bruno Le Hyaric
  2010-05-18 23:12     ` Adam Beneschan
  0 siblings, 1 reply; 6+ messages in thread
From: Bruno Le Hyaric @ 2010-05-18 14:23 UTC (permalink / raw)


> Well, I would hope so.  A parser that didn't handle comments in Ada
> source would be pretty unusable.
>
>                             -- Adam

I agree with you. As you might noticed, the project is extremly recent
and comments
will be handled soon.

I also plan to simplify the parsing tree to get a suitable AST,
then to make further pre-analysis.

As it may take some times, I would suggest you to have a look by the
end of June.


Regards,

Bruno Le Hyaric.
http://bruno-lehyaric.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: TXL Grammar for Ada 2005
  2010-05-18 14:23   ` Bruno Le Hyaric
@ 2010-05-18 23:12     ` Adam Beneschan
  2010-05-19 15:10       ` Bruno Le Hyaric
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Beneschan @ 2010-05-18 23:12 UTC (permalink / raw)


On May 18, 7:23 am, Bruno Le Hyaric <bruno.lehya...@gmail.com> wrote:
> > Well, I would hope so.  A parser that didn't handle comments in Ada
> > source would be pretty unusable.
>
> >                             -- Adam
>
> I agree with you. As you might noticed, the project is extremly recent
> and comments
> will be handled soon.

I'm sorry you took this seriously---I was trying to make a bad joke.
My apologies.  I should have added a smiley, but the smiley key on my
keyboard is broken.

                        -- Adam



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: TXL Grammar for Ada 2005
  2010-05-18 23:12     ` Adam Beneschan
@ 2010-05-19 15:10       ` Bruno Le Hyaric
  2010-07-05 18:08         ` Bruno Le Hyaric
  0 siblings, 1 reply; 6+ messages in thread
From: Bruno Le Hyaric @ 2010-05-19 15:10 UTC (permalink / raw)


>
> I'm sorry you took this seriously---I was trying to make a bad joke.
> My apologies.  I should have added a smiley, but the smiley key on my
> keyboard is broken.
>
>                         -- Adam


Haha, no problem. It was a relevant comment.
But now the grammar handle comments in input (it means you can analyze
it with TXL engine) but does not ouput them yet.

http://github.com/bu2/ada-2005-txl-grammar

Bruno Le Hyaric.
http://bruno-lehyaric.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: TXL Grammar for Ada 2005
  2010-05-19 15:10       ` Bruno Le Hyaric
@ 2010-07-05 18:08         ` Bruno Le Hyaric
  0 siblings, 0 replies; 6+ messages in thread
From: Bruno Le Hyaric @ 2010-07-05 18:08 UTC (permalink / raw)


Ada 95/2005 grammar for TXL with comment handling on rails!
It parses TIS project (Tokener) and full GNAT/GTKAda source code files
(3802 files, more than 500000 LoC) in 3 minutes!

Now, I plan to implement OMG GASTM/SASTM standard based on the TXL
language and XSLT.

Ada grammar for TXL :
http://github.com/bu2/ada-2005-txl-grammar


Bruno Le Hyaric.
http://bruno-lehyaric.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-05 18:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17 22:18 TXL Grammar for Ada 2005 Bruno Le Hyaric
2010-05-18  0:58 ` Adam Beneschan
2010-05-18 14:23   ` Bruno Le Hyaric
2010-05-18 23:12     ` Adam Beneschan
2010-05-19 15:10       ` Bruno Le Hyaric
2010-07-05 18:08         ` Bruno Le Hyaric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox