Re: [SPAM] [SPAM] strict productions
Bastiaan Veelo <[email protected]> Thu, 16 Feb 2017 09:59:46 +0100
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
The parser is complete except the handling of ambiguities. But it is just that: a parser. The output is an AST. I have meant to submit the grammar as an example to Pegged [1], I’ll see if I can find some time for that, together with an example parser. Bastiaan. [1] https://github.com/PhilippeSigaud/Pegged > On 15 Feb 2017, at 21:20, John L. Ries <[email protected]> wrote: > > I'm not at all sure we really want a trilingual compiler, but the parser > is complete or nearly so, it's probably worth a look. > > --------------------------| > John L. Ries | > Salford Systems | > Phone: (619)543-8880 x107 | > or (435)867-8885 | > --------------------------| > > > On Wed, 15 Feb 2017, Bastiaan Veelo wrote: > >> I wrote a recursive descent parser for Extended Pascal in the D language >> using the Pegged library, which takes the rules of the standard almost >> literally. I remember changing the order of options in some rules, but I am >> unsure whether that was for efficiency or for giving precedence to common >> constructs. I do remember seeing ambiguities in variable access and function >> access, which I imagine can be resolved by keeping a symbol table of earlier >> definitions. >> >> My parser is an interesting project but turned out to be rather inefficient >> at the moment. If there is an interest I will consider to put it online. >> >> Bastiaan. >> _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc
signature.asc
(application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJYpWoDAAoJEKv6vZcpz/qNjPkQANVIi//gXg0nC4fVKOCmZkeT gbt7xAyuDRxOvZvCc5idiWqq0pIWXBEbJMCLR1fYqhqPZXAsRs5jv986AMoOsqqi 5lvfkkzsajbBPwBiSE1G874MIOorEoFUJwUk7EmXCod3O/Q01sP6F6UVcBfnyaxI Aj5ASAB9qKraLUfIBVKgVFRCbcO0TI5LMEtPtuNt5Kk0LkV4VRyFWVNOzQdflAEb mslXUgt8Q0s6F2DVKIUkWFdH73fbJqSeu7LaDV+vu4uXV0lEleJBufwGrsDDq/1p lfZXCauFqoGb3FncVWVBv767VDP/u487oIKYc2jksxUn0XP9950OfSZMCkN0WDZr Ett9TjaZD1KDb33xmv6pz6DVGQbEFzQQpnw5BQX0djZWdZU373214QdebV/JDYuI UruzqmyMrt0HwJBv8HZQ83UCuujvE7typ68yg50BV2UXeNjW2+pN0bjKhPE2IVWF 0NDZUNpbcw4WEdVjF/QH0UsFEzGfgtyC1JF7JjaR+O8OggNqyKF2K/CLNz7R6uKJ r+tAmx332JGujc12lF8CNjfkNCe/qgcbKE29lC/C25hXRwcRxciSDAg5cHE1eQa1 M0/95sJHtUCAklYiQ3vcZDxT9tX6urAddRIdnvqey3RJqcQVuKWFGNKlXCpEW5YO fddjFLaIurH87dC4NHrr =1kYd -----END PGP SIGNATURE-----