Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28542 > unrolled thread
| Started by | Nestor Arocha <nesaro@gmail.com> |
|---|---|
| First post | 2012-09-05 14:04 -0700 |
| Last post | 2012-09-08 08:09 -0700 |
| Articles | 7 — 3 participants |
Back to article view | Back to comp.lang.python
Language workbench written in python3 Nestor Arocha <nesaro@gmail.com> - 2012-09-05 14:04 -0700
Re: Language workbench written in python3 Ramchandra Apte <maniandram01@gmail.com> - 2012-09-06 06:34 -0700
Re: Language workbench written in python3 Dave Angel <d@davea.name> - 2012-09-06 09:46 -0400
Re: Language workbench written in python3 Ramchandra Apte <maniandram01@gmail.com> - 2012-09-06 06:53 -0700
Re: Language workbench written in python3 Dave Angel <d@davea.name> - 2012-09-06 10:25 -0400
Re: Language workbench written in python3 Nestor Arocha <nesaro@gmail.com> - 2012-09-06 12:48 -0700
Re: Language workbench written in python3 Ramchandra Apte <maniandram01@gmail.com> - 2012-09-08 08:09 -0700
| From | Nestor Arocha <nesaro@gmail.com> |
|---|---|
| Date | 2012-09-05 14:04 -0700 |
| Subject | Language workbench written in python3 |
| Message-ID | <1ed391c3-8fcf-4a3f-8ad7-0a2cf913b6cc@googlegroups.com> |
I'm developing a language workbench written in Python. The idea is to create an environment where grammars and translators can interact easily. https://github.com/nesaro/pydsl any comments, feedback or ideas? :)
[toc] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-06 06:34 -0700 |
| Message-ID | <634287e3-12b3-4b47-8ad2-38c1bc76ff1a@googlegroups.com> |
| In reply to | #28542 |
On Thursday, 6 September 2012 02:34:17 UTC+5:30, Nestor Arocha wrote: > I'm developing a language workbench written in Python. The idea is to create an environment where grammars and translators can interact easily. > > > > https://github.com/nesaro/pydsl > > > > any comments, feedback or ideas? :) Translator means what precisely?
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-09-06 09:46 -0400 |
| Message-ID | <mailman.302.1346939197.27098.python-list@python.org> |
| In reply to | #28590 |
On 09/06/2012 09:34 AM, Ramchandra Apte wrote: > Translator means what precisely? Examples of translators include compilers, assemblers, and interpreters. They also include implementations like cfront, which translates from one high-level language to another lower-level language. (high and low being relative) -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-06 06:53 -0700 |
| Message-ID | <314ae0e0-f38f-4cb9-944c-511343988f37@googlegroups.com> |
| In reply to | #28596 |
On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: > On 09/06/2012 09:34 AM, Ramchandra Apte wrote: > > > Translator means what precisely? > > > > Examples of translators include compilers, assemblers, and > > interpreters. They also include implementations like cfront, which > > translates from one high-level language to another lower-level > > language. (high and low being relative) > > > > -- > > > > DaveA Is conversion from Python to C++ possible from this project?
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-09-06 10:25 -0400 |
| Message-ID | <mailman.305.1346941565.27098.python-list@python.org> |
| In reply to | #28597 |
On 09/06/2012 09:53 AM, Ramchandra Apte wrote: > On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: >> On 09/06/2012 09:34 AM, Ramchandra Apte wrote: >> >>> Translator means what precisely? >> >> >> Examples of translators include compilers, assemblers, and >> >> interpreters. They also include implementations like cfront, which >> >> translates from one high-level language to another lower-level >> >> language. (high and low being relative) >> > Is conversion from Python to C++ possible from this project? I'll let the OP answer that. I don't know anything about it. -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Nestor Arocha <nesaro@gmail.com> |
|---|---|
| Date | 2012-09-06 12:48 -0700 |
| Message-ID | <a7c6b499-46da-4d53-a66b-91f332d90a7b@googlegroups.com> |
| In reply to | #28597 |
On Thursday, September 6, 2012 2:53:15 PM UTC+1, Ramchandra Apte wrote: > On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: > > > On 09/06/2012 09:34 AM, Ramchandra Apte wrote: > > > > > > > Translator means what precisely? > > > > > > > > > > > > Examples of translators include compilers, assemblers, and > > > > > > interpreters. They also include implementations like cfront, which > > > > > > translates from one high-level language to another lower-level > > > > > > language. (high and low being relative) > > > > > > > > > > > > -- > > > > > > > > > > > > DaveA > > > > Is conversion from Python to C++ possible from this project? No, it is not currently possible for several reasons: * current parser implementation is a recursive descent parser. I haven't implemented an LR parser yet, although PLY lexers and parsers are supported. * Syntax Directed Translator is not fully implemented either. * Parser Trees are supported, but there is no clear method defined for converting them into ASTs (like antlr grammars) * Even with AST and SDT support, a Python to C++ translator will require more complex tools and a lot of coding. This tool is oriented to small DSLs parsing and translation; grammars like Python or C++ are too complex for the current implementation
[toc] | [prev] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-08 08:09 -0700 |
| Message-ID | <65cd713e-38cf-4897-8777-0f824503c193@googlegroups.com> |
| In reply to | #28630 |
On Friday, 7 September 2012 01:18:45 UTC+5:30, Nestor Arocha wrote: > On Thursday, September 6, 2012 2:53:15 PM UTC+1, Ramchandra Apte wrote: > > > On Thursday, 6 September 2012 19:16:38 UTC+5:30, Dave Angel wrote: > > > > > > > On 09/06/2012 09:34 AM, Ramchandra Apte wrote: > > > > > > > > > > > > > > > Translator means what precisely? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Examples of translators include compilers, assemblers, and > > > > > > > > > > > > > > interpreters. They also include implementations like cfront, which > > > > > > > > > > > > > > translates from one high-level language to another lower-level > > > > > > > > > > > > > > language. (high and low being relative) > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > > > > > > > > > > > > > DaveA > > > > > > > > > > > > Is conversion from Python to C++ possible from this project? > > > > No, it is not currently possible for several reasons: > > * current parser implementation is a recursive descent parser. I haven't implemented an LR parser yet, although PLY lexers and parsers are supported. > > * Syntax Directed Translator is not fully implemented either. > > * Parser Trees are supported, but there is no clear method defined for converting them into ASTs (like antlr grammars) > > * Even with AST and SDT support, a Python to C++ translator will require more complex tools and a lot of coding. > > > > This tool is oriented to small DSLs parsing and translation; grammars like Python or C++ are too complex for the current implementation I was thinking I could use it for my Python to C/C++ converter - py2c @ code.google.com/p/py2c (py2c would love a developer so join and contribute)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web