comp.lang.ada
 help / color / mirror / Atom feed
* Re: aflexx/ayacc
  1999-03-08  0:00 aflexx/ayacc Daniel Wengelin
@ 1999-03-08  0:00 ` Pascal Obry
  1999-03-13  0:00   ` Parser generator tools (Was Re: aflexx/ayacc) Brian Rogoff
  1999-03-15  0:00 ` aflexx/ayacc Guiem Bernat
  1 sibling, 1 reply; 14+ messages in thread
From: Pascal Obry @ 1999-03-08  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]


Daniel Wengelin a �crit dans le message
<01be693b$a87772e0$314d3a8b@nt-dawe>...
>Greetings,
>I digged up an old aflex/ayacc distribution (1.4) from Arcadia and tried to
>compile it with Ada95. I found one problem (Character'Last) but my quick
>fix didn't come out very well.
>
>Does anyone know if there is a more recent version of aflex/ayacc??
>
>There appears to be a Gnat-beta born -95. Is that the most recent?

You'll find a aflex/ayacc port for GNAT under my homepage.

http://ourworld.compuserve.com/homepages/pascal_obry/contrib.html

There is also many other components.

Pascal.

--|------------------------------------------------------------
--| Pascal Obry                               Team-Ada Member |
--|                                                           |
--| EDF-DER-IPN-SID- T T I                                    |
--|                       Intranet: http://cln46gb            |
--| Bureau N-023            e-mail: pascal.obry@edf.fr        |
--| 1 Av G�n�ral de Gaulle  voice : +33-1-47.65.50.91         |
--| 92141 Clamart CEDEX     fax   : +33-1-47.65.50.07         |
--| FRANCE                                                    |
--|------------------------------------------------------------
--|
--|   http://ourworld.compuserve.com/homepages/pascal_obry
--|
--|   "The best way to travel is by means of imagination"







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

* aflexx/ayacc
@ 1999-03-08  0:00 Daniel Wengelin
  1999-03-08  0:00 ` aflexx/ayacc Pascal Obry
  1999-03-15  0:00 ` aflexx/ayacc Guiem Bernat
  0 siblings, 2 replies; 14+ messages in thread
From: Daniel Wengelin @ 1999-03-08  0:00 UTC (permalink / raw)


Greetings,
I digged up an old aflex/ayacc distribution (1.4) from Arcadia and tried to
compile it with Ada95. I found one problem (Character'Last) but my quick
fix didn't come out very well. 

Does anyone know if there is a more recent version of aflex/ayacc??

There appears to be a Gnat-beta born -95. Is that the most recent?

Cheers, Dan

-- 
--------------------------------------------------------------
Daniel Wengelin
dawe@celsiustech.se
--------------------------------------------------------------





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

* Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-08  0:00 ` aflexx/ayacc Pascal Obry
@ 1999-03-13  0:00   ` Brian Rogoff
  1999-03-14  0:00     ` Nick Roberts
                       ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Brian Rogoff @ 1999-03-13  0:00 UTC (permalink / raw)


Hi,
	Has anyone created any parser generator tools for Ada (95) besides 
aflex/ayacc which they'd be willing to release under some sort of
"open source" license? In particular, I'd be interested in an LL(k) style 
parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
a recursively decent fellow. I'm willing to help debug code if necessary.

-- Brian






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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-13  0:00   ` Parser generator tools (Was Re: aflexx/ayacc) Brian Rogoff
@ 1999-03-14  0:00     ` Nick Roberts
  1999-03-14  0:00       ` Brian Rogoff
  1999-03-15  0:00     ` Tarjei Tj�stheim Jensen
  1999-03-15  0:00     ` fraser
  2 siblings, 1 reply; 14+ messages in thread
From: Nick Roberts @ 1999-03-14  0:00 UTC (permalink / raw)


Brian Rogoff wrote in message ...
|Hi,
| Has anyone created any parser generator tools for Ada (95) besides
|aflex/ayacc which they'd be willing to release under some sort of
|"open source" license? In particular, I'd be interested in an LL(k) style
|parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
|a recursively decent fellow. I'm willing to help debug code if necessary.


This is obviously a subject of interest to me (I am writing an Ada
compiler).  I don't know of any such tools, but I am considering the idea of
writing something like this, which might (or might not) suit your needs.  If
you get involved in writing or developing something like this, I may well be
interested in participating.

-------------------------------------
Nick Roberts
-------------------------------------









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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-14  0:00     ` Nick Roberts
@ 1999-03-14  0:00       ` Brian Rogoff
  0 siblings, 0 replies; 14+ messages in thread
From: Brian Rogoff @ 1999-03-14  0:00 UTC (permalink / raw)


On Sun, 14 Mar 1999, Nick Roberts wrote:
> Brian Rogoff wrote in message ...
> |Hi,
> | Has anyone created any parser generator tools for Ada (95) besides
> |aflex/ayacc which they'd be willing to release under some sort of
> |"open source" license? In particular, I'd be interested in an LL(k) style
> |parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
> |a recursively decent fellow. I'm willing to help debug code if necessary.
> 
> 
> This is obviously a subject of interest to me (I am writing an Ada
> compiler).

A parser generator seems like the wrong approach to me if you are writing
an Ada compiler. If I were (crazy enough to be :-) doing that, I'd
probably hand code the parser. 

The reason I'm interested in such tools is that the field I work in has a 
huge number of standard (and not so standard) text file formats for data 
exchange, and I need to write lots of one-off tools. 

-- Brian

> I don't know of any such tools, but I am considering the idea of
> writing something like this, which might (or might not) suit your needs.  If
> you get involved in writing or developing something like this, I may well be
> interested in participating.
> 
> -------------------------------------
> Nick Roberts
> -------------------------------------
> 
> 
> 
> 
> 
> 
> 





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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-13  0:00   ` Parser generator tools (Was Re: aflexx/ayacc) Brian Rogoff
  1999-03-14  0:00     ` Nick Roberts
  1999-03-15  0:00     ` Tarjei Tj�stheim Jensen
@ 1999-03-15  0:00     ` fraser
  2 siblings, 0 replies; 14+ messages in thread
From: fraser @ 1999-03-15  0:00 UTC (permalink / raw)


paene lacrimavi postquam Brian Rogoff <bpr@shell5.ba.best.com> scribavit

>	Has anyone created any parser generator tools for Ada (95) besides 
>aflex/ayacc which they'd be willing to release under some sort of
>"open source" license? In particular, I'd be interested in an LL(k) style 
>parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
>a recursively decent fellow. I'm willing to help debug code if necessary.

Weeeeell ... just for fun I wrote a generic lexical analyser (give it
tokens and some other info, it does the rest) and a bunch of objects
for constructing a compilers and interpreters.  I'm moving on to a decorated
EBNF compiler which (if all goes to plan) should do what you want, although
it's currently directed toward syntax-directed editing (compilation is
a side-effect though).

Sadly, it's in a fairly early stage, but hey, watch this space ...

Fraser.
(change i's to y's to get my real address)




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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-13  0:00   ` Parser generator tools (Was Re: aflexx/ayacc) Brian Rogoff
  1999-03-14  0:00     ` Nick Roberts
@ 1999-03-15  0:00     ` Tarjei Tj�stheim Jensen
  1999-03-16  0:00       ` Dan Johnston D.B.
  1999-03-15  0:00     ` fraser
  2 siblings, 1 reply; 14+ messages in thread
From: Tarjei Tj�stheim Jensen @ 1999-03-15  0:00 UTC (permalink / raw)



Brian Rogoff wrote in message ...
>Hi,
> Has anyone created any parser generator tools for Ada (95) besides
>aflex/ayacc which they'd be willing to release under some sort of
>"open source" license? In particular, I'd be interested in an LL(k) style
>parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
>a recursively decent fellow. I'm willing to help debug code if necessary.


There is something called Cocktail that was released a few years ago that may
interest you. The commercial version may still be available (at that time it
generated modula-2). If you need something to do you could port cocktail to
Ada.


Greetings





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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-16  0:00       ` Dan Johnston D.B.
@ 1999-03-15  0:00         ` Brian Rogoff
  1999-03-16  0:00           ` Tarjei Tj�stheim Jensen
  1999-03-16  0:00         ` Tarjei Tj�stheim Jensen
  1999-03-17  0:00         ` Michael F Brenner
  2 siblings, 1 reply; 14+ messages in thread
From: Brian Rogoff @ 1999-03-15  0:00 UTC (permalink / raw)


On 16 Mar 1999, Dan Johnston D.B. wrote:

> In <7cjajp$ni91@ftp.kvaerner.com> "Tarjei Tjstheim Jensen" <tarjei.jensen@kvaerner.no> writes:
> >Brian Rogoff wrote in message ...
> >>Hi,
> >> Has anyone created any parser generator tools for Ada (95) besides
> >>aflex/ayacc which they'd be willing to release under some sort of
> >>"open source" license? In particular, I'd be interested in an LLi(k)
style
> >>parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
> >>a recursively decent fellow. I'm willing to help debug code if necessary.
> 
> >There is something called Cocktail that was released a few years ago that may
> >interest you. The commercial version may still be available (at that time it
> >generated modula-2). If you need something to do you could port cocktail to
> >Ada.
> 
> I have converted several of the "Cocktail" tools, from the last release of
> Cocktail prior to its commercialisation, to generate Ada-95 as well as the
> Modula-2 and C, which it generated as originally distributed. 
> 
> The following tools have been converted to generate Ada (95):
>    rex  - lexical generator
>    lalr - parser generator
>    cg - attribute grammar system (comprising
>               ast - abstract syntax tree system
>               ag - attribute evaluator.)
>    puma - a pattern matching system for manipulating attributed trees.
> 
> Unfortunately, I have not converted "ell" the recursive descent parser
> generator, which would be the tool of interest to the initiator of this
> thread.

Thanks for catching on! If I were interested in yet another LR parser gen
I'd stick with ayacc. I'd really like something like PRECC or ANTLR for
Ada. I'd also like the tool to be written in Ada so that I could
recompile as necessary. I don't have access to an M2 compiler. 

I can of course write all of my code in C, using C tools, but I'd like to 
introduce Ada into my tool chain. Of course, I can hand code parsers too, 
or write the LL(k) gen myself, but that seems like a waste of time. 

-- Brian





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

* Re: aflexx/ayacc
  1999-03-08  0:00 aflexx/ayacc Daniel Wengelin
  1999-03-08  0:00 ` aflexx/ayacc Pascal Obry
@ 1999-03-15  0:00 ` Guiem Bernat
  1 sibling, 0 replies; 14+ messages in thread
From: Guiem Bernat @ 1999-03-15  0:00 UTC (permalink / raw)


I have the aflex and Ayacc "adjusted" for gnat3.11 (also have the binaries
for linux and win NT). 

I can send them to you (or anyone interested).

Guiem

Daniel Wengelin wrote:
> 
> Greetings,
> I digged up an old aflex/ayacc distribution (1.4) from Arcadia and tried to
> compile it with Ada95. I found one problem (Character'Last) but my quick
> fix didn't come out very well.
> 
> Does anyone know if there is a more recent version of aflex/ayacc??
> 
> There appears to be a Gnat-beta born -95. Is that the most recent?
> 
> Cheers, Dan
> 
> --
> --------------------------------------------------------------
> Daniel Wengelin
> dawe@celsiustech.se
> --------------------------------------------------------------

-- 
----------------------------------------------------------------------
Dr. Guillem Bernat                          e-mail:bernat@cs.york.ac.uk

Universitat de les illes Balears            	University of York
Dep. Matematiques i Informatica			Dept. Computer Science
						Real-Time Systems Group
			
Carretera Valldemossa, Km 7.5			York YO10 5DD 
07071 - Palma Mallorca - 			United Kingdom
Balearic Islands. Spain					
						Tel: +44.1904.434760
Fax: +34.71.173003				Fax: +44.1970.432767
----------------------------------------------------------------------




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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-15  0:00     ` Tarjei Tj�stheim Jensen
@ 1999-03-16  0:00       ` Dan Johnston D.B.
  1999-03-15  0:00         ` Brian Rogoff
                           ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Dan Johnston D.B. @ 1999-03-16  0:00 UTC (permalink / raw)


In <7cjajp$ni91@ftp.kvaerner.com> "Tarjei Tjstheim Jensen" <tarjei.jensen@kvaerner.no> writes:

>Brian Rogoff wrote in message ...
>>Hi,
>> Has anyone created any parser generator tools for Ada (95) besides
>>aflex/ayacc which they'd be willing to release under some sort of
>>"open source" license? In particular, I'd be interested in an LL(k) style
>>parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically
>>a recursively decent fellow. I'm willing to help debug code if necessary.

>There is something called Cocktail that was released a few years ago that may
>interest you. The commercial version may still be available (at that time it
>generated modula-2). If you need something to do you could port cocktail to
>Ada.

I have converted several of the "Cocktail" tools, from the last release of
Cocktail prior to its commercialisation, to generate Ada-95 as well as the
Modula-2 and C, which it generated as originally distributed. 

The following tools have been converted to generate Ada (95):
   rex  - lexical generator
   lalr - parser generator
   cg - attribute grammar system (comprising
              ast - abstract syntax tree system
              ag - attribute evaluator.)
   puma - a pattern matching system for manipulating attributed trees.

Unfortunately, I have not converted "ell" the recursive descent parser
generator, which would be the tool of interest to the initiator of this
thread.
The generators are still written in Modula-2.

I have used these generators (i.e. the Ada generating version) successfully 
for typical "toy" languages in my compilers class for a couple of years.

The sources carry the original copyright of Josef Grosch who developed the 
original tools.  I am not clear what restrictions he may wish to place on 
their usage, and I believe anyone interested in commercial usage of these 
tools should contact him on this issue.  However, the originals from which 
these are derived were freely distributed.  (Josef Grosch was aware of my
work. I sent him a copy a couple of years ago.)

If there is interest, I am prepared to package them and make them available,
but this would probably take a little while as I am pretty busy at the
moment.
          dan.    Dan Johnston, lecturer,
                  Department of Computer Science and Electrical Engineering,
                  University of Queensland, 4072
                  Australia.
                  email: dan@csee.uq.edu.au





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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-15  0:00         ` Brian Rogoff
@ 1999-03-16  0:00           ` Tarjei Tj�stheim Jensen
  0 siblings, 0 replies; 14+ messages in thread
From: Tarjei Tj�stheim Jensen @ 1999-03-16  0:00 UTC (permalink / raw)


Brian Rogoff wrote
>Thanks for catching on! If I were interested in yet another LR parser gen
>I'd stick with ayacc. I'd really like something like PRECC or ANTLR for
>Ada. I'd also like the tool to be written in Ada so that I could
>recompile as necessary. I don't have access to an M2 compiler.


Cocktail comes with a Modula-2 to C translator. It works all right most of the
time.

I would not be surprised if it was relatively easy to convert Modula-2 to Ada.

If my memory serves me right (it occationally do) Cocktail is written in
itself. If one changes the right files one should be able to get tools that are
written in Ada and will generate Ada source code.


Greetings,






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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-16  0:00       ` Dan Johnston D.B.
  1999-03-15  0:00         ` Brian Rogoff
@ 1999-03-16  0:00         ` Tarjei Tj�stheim Jensen
  1999-03-17  0:00         ` Michael F Brenner
  2 siblings, 0 replies; 14+ messages in thread
From: Tarjei Tj�stheim Jensen @ 1999-03-16  0:00 UTC (permalink / raw)



Dan Johnston D.B. wrote :
>If there is interest, I am prepared to package them and make them available,
>but this would probably take a little while as I am pretty busy at the
>moment.


I think that it is an excellent idea. I'm sure that it will be useful.


Greetings,








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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-16  0:00       ` Dan Johnston D.B.
  1999-03-15  0:00         ` Brian Rogoff
  1999-03-16  0:00         ` Tarjei Tj�stheim Jensen
@ 1999-03-17  0:00         ` Michael F Brenner
  1999-03-18  0:00           ` Ralph Paul
  2 siblings, 1 reply; 14+ messages in thread
From: Michael F Brenner @ 1999-03-17  0:00 UTC (permalink / raw)



Dan >    rex  - lexical generator
    >    lalr - parser generator
    >    cg - attribute grammar system (comprising
              ast - abstract syntax tree system
              ag - attribute evaluator.)
    > puma - a pattern matching system for manipulating attributed trees.
 
Dan, I am very interested in this work. How much work is needed on the
top down parser generator?

Mike Brenner    mikeb@mitre.org






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

* Re: Parser generator tools (Was Re: aflexx/ayacc)
  1999-03-17  0:00         ` Michael F Brenner
@ 1999-03-18  0:00           ` Ralph Paul
  0 siblings, 0 replies; 14+ messages in thread
From: Ralph Paul @ 1999-03-18  0:00 UTC (permalink / raw)


Michael F Brenner schrieb:
> 
> Dan >    rex  - lexical generator
>     >    lalr - parser generator
>     >    cg - attribute grammar system (comprising
>               ast - abstract syntax tree system
>               ag - attribute evaluator.)
>     > puma - a pattern matching system for manipulating attributed trees.
> 
> Dan, I am very interested in this work. How much work is needed on the
> top down parser generator?
> 
> Mike Brenner    mikeb@mitre.org

Hi folks,

for a Ada95 version of the Cocktail Toolbox check out :

http://www.informatik.uni-stuttgart.de/ifi/ps/cocktail/


Regards,


Ralph Paul




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

end of thread, other threads:[~1999-03-18  0:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-08  0:00 aflexx/ayacc Daniel Wengelin
1999-03-08  0:00 ` aflexx/ayacc Pascal Obry
1999-03-13  0:00   ` Parser generator tools (Was Re: aflexx/ayacc) Brian Rogoff
1999-03-14  0:00     ` Nick Roberts
1999-03-14  0:00       ` Brian Rogoff
1999-03-15  0:00     ` Tarjei Tj�stheim Jensen
1999-03-16  0:00       ` Dan Johnston D.B.
1999-03-15  0:00         ` Brian Rogoff
1999-03-16  0:00           ` Tarjei Tj�stheim Jensen
1999-03-16  0:00         ` Tarjei Tj�stheim Jensen
1999-03-17  0:00         ` Michael F Brenner
1999-03-18  0:00           ` Ralph Paul
1999-03-15  0:00     ` fraser
1999-03-15  0:00 ` aflexx/ayacc Guiem Bernat

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