Lex and Yacc for Modula-2 
Author Message
 Lex and Yacc for Modula-2

Has anyone heard of a version of lex, yacc or similar compiler-building
tools?  I'm writing a compiler in Modula-2 and I'd rather keep the
whole thing in Modula-2 rather than linking in a bunch of C code.

Thanks a lot.

Troy Zerr
Univ. of Wisconsin
Dept. of Math.



Fri, 07 Aug 1992 04:11:19 GMT  
 Lex and Yacc for Modula-2


Quote:

>Has anyone heard of a version of lex, yacc or similar compiler-building
>tools?  I'm writing a compiler in Modula-2 and I'd rather keep the
>whole thing in Modula-2 rather than linking in a bunch of C code.

>Thanks a lot.

>Troy Zerr

Well the managerial consultant at the company where I used to work
wrote a version of Yacc in Turbo Prolog...

Seriously, translating the output of Yacc to any language (I've
translated it to both Rexx and 370 Assembly) automatically is quite
easy.  The combination of translated Yacc output and M2 might work
nicely for you.

mark



Sat, 08 Aug 1992 01:02:46 GMT  
 Lex and Yacc for Modula-2
Quote:
>Has anyone heard of a version of lex, yacc or similar compiler-building
>tools?  I'm writing a compiler in Modula-2 and I'd rather keep the
>whole thing in Modula-2 rather than linking in a bunch of C code.

>Thanks a lot.

>Troy Zerr
>Univ. of Wisconsin
>Dept. of Math.

Please excuse my posting this to the whole net but messages kept bouncing
because the computer "SPEEDY" in the original posting wasn't found.

I have a translator writer system that is usable but still needs lots of
work and documentation.  It is not yacc/lex-like.  It is EBNF, attributed
grammar, recursive descent with the ability to define attributes and imports
so the complete parser module can be generated.  It is written in FST m-2
for the pc.  It is still a month or more (I am doing this at night and
weekends) away from being ready for prime time.  Let me know what you`re
timing is.

Tom.

Thomas F. Reid, Ph. D.                   (703)818-4505 (work)
Contel Technology Center                 (703)742-8720 (home)

P.O. Box 10814
Chantilly, Va.  22021-3038



Fri, 07 Aug 1992 22:54:39 GMT  
 Lex and Yacc for Modula-2

Quote:

> Has anyone heard of a version of lex, yacc or similar compiler-building
> tools?  I'm writing a compiler in Modula-2 and I'd rather keep the
> whole thing in Modula-2 rather than linking in a bunch of C code.

The Book 'A Compiler Generator For Microcomputers' by P Rechenberg and
H Mossenbock (Prentice Hall 1989, ISBN 0-13-155136) presents Coco an
LL(1) parser generator.  The book includes a complete listing of the
Coco source code.  A machine readable version may be available for the
IBM-PC from the publishers.


YACC to produce Modula-2, contact him directly for more details.
--

Snr Software Engineer, Robobar Ltd. | Fax:    +44 1 998 8343 (G3)
22 Wadsworth Road, Perivale.        |
Middx., UB6 7JD ENGLAND.            |



Sat, 08 Aug 1992 19:39:17 GMT  
 Lex and Yacc for Modula-2
Tom,

I'm always interested in parser generators; yours sounds pretty nifty.
Would you please put me on your list?  Thanks!

Ben Crocker
Multiuflow Computer, Inc.
31 Business Park Drive



Sun, 09 Aug 1992 00:37:09 GMT  
 Lex and Yacc for Modula-2
Will do.  It will be a while before I want to let people in on my bad coding
habits.  I'll let you know when its ready.

Tom.



Sun, 09 Aug 1992 21:29:15 GMT  
 Lex and Yacc for Modula-2
This is to Tom Reid and to all of you...

to Tom: I also am interested in compiler-writing tools. Yours too, of
   course.

to All: Isn't this a topic of general interest. Means that follow-ups
   should *really* go to the list, I think. (I never would have known
   about Tom's tools had he (as intended) written to Troy directly and
   not, as happened, via the list)

So I call on each and every one of you: Who's got compiler-writing
tools/aids (be it yacc,bison or whatever) that create M2 source?
Post to the list, please (see above)

                                          -jae

========================================================================
Juergen A. Erhard

phone: (+49) 721/591602
"You know that it's monday when you wake up and it's tuesday."
                                                    Garfield
DISCLAIMER: none, I don't speak legalese.



Mon, 10 Aug 1992 04:11:51 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. WANTED: Lex and Yacc for Modula-2

2. Modula 2 - Lex / Yacc specifications

3. yacc/lex like tools that generate Modula 2

4. Q: Lex&YACC smalltalk version ?

5. awk lex yacc (beginner question)

6. LEX and YACC in Smalltalk

7. lex/yacc

8. Lex & Yacc for Smalltalk

9. Yacc/Lex Description of Eiffel v3

10. lex and yacc with Eiffel

11. lex, and yacc spec for eiffel ?

12. LEX-YACC interfacing with Eiffel

 

 
Powered by phpBB® Forum Software