help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What do you use bison for?


From: Panayiotis Karabassis
Subject: Re: What do you use bison for?
Date: Wed, 08 Jun 2011 23:00:25 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110510 Icedove/3.1.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/04/2011 03:00 PM, Adam Smalin wrote:
> I was wondering what you guys use bison for? I am writing my own programming
> language with it and its insanely complex (hard to do)
> I kind of doubt many ppl are writing their own languages and i am pretty
> sure i seen a json parser created by using bison.
> 
> What do you use bison for?

I *do* use it to write my own programming language, sort of.

Well it is an implementation of the programming language Tony (after
Tony Hoare of quicksort fame), designed by my professor for a compilers'
course at my university. It is sort of a Pascal clone with lists and
garbage collection, and I believe it is Turing complete. It is kind of a
boring language though.

Yes, it is insanely complex. Do you have any guidance? The best book on
the subject is the Dragon Book, now republished in its second edition,
but even so it is very difficult. I have been working on it for almost a
year, long past the deadline, thanks to my understanding professor.

The most awkward part was getting the project set-up with a C++ parser
and lexer, Autotools and libgc for garbage collection. Now it's done
though, these facilities are really helping me make quick progress.

Anyway I've almost finished the stage of intermediate code generation
(quadruples). Only code optimizations and translation to assembly left,
and I'll have a working compiler! :-)

- -- 
Best regards,
    Panayiotis Karabassis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN79TWAAoJEN7RcJcJCZJi6PoIAMngwRTcw4l7WcP+jg/hYfe/
NFSs5goXw2dWkQMSrO0rREPzLbkQnpNQ1QSFPQnYjXOwThKpjEIrW/+JLnNq8UsX
6AgKXQJIwawbsPft7gMML9XNJ4scgXWfwwBI4oESQ2r4/5fi6cHboOEefxiUGTQg
0Fd7fLgR8t5Okyl4cXybI6Gj4+Pfkz7b5VAkuIrjho3UiAOrMauz/Vr5trkdssGW
eRBjZ3fS3SLHdyuq6jY91h3sebCVtAIur2DQVPXg+tkn7oiChNf2VXFyetsVcRmh
Z+8bZheSVX9BaVLOGxgI96xX3DM0zwjOcuUAtcntGvgRDHAwjdEi5LxX3jjj9hM=
=RF5d
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]