Re: [Tutor] python parser

2008-12-23 Thread bob gailer
I'm forwarding this to the list. Please always reply-all so a copy goes to the list. johnf wrote: On Monday 22 December 2008 03:03:44 pm you wrote: More thoughts on converting VFP to Python: line-by-line can take into account control structures. One just increases or decreases the indent w

Re: [Tutor] python parser

2008-12-22 Thread bob gailer
More thoughts on converting VFP to Python: line-by-line can take into account control structures. One just increases or decreases the indent when encountering the start or end of a structure. a bigger challenge is handling the work-area related commands such as Scan, Replace, Skip, Set Relat

Re: [Tutor] python parser

2008-12-22 Thread Eike Welk
Hi John! I have written a (currently mostly defunct) compiler in Python for a specialized programming language. The parser may serve as an example for you. Introduction: http://freeode.berlios.de/ The parser: https://svn.berlios.de/wsvn/freeode/trunk/freeode_py/freeode/simlparser.py The meth

Re: [Tutor] python parser

2008-12-22 Thread Garry Bettle
On Mon, 22 Dec 2008 09:39:37 -0800, johnf wrote: > Well I'm attempting to convert VFP and MsSQL (stored procedures and triggers) > to Python and Postgres (functions and triggers). Actually, python is very > close to VFP and I would convert very well. MsSQL is another question. Hi John, I hope t

Re: [Tutor] python parser

2008-12-22 Thread Kent Johnson
On Mon, Dec 22, 2008 at 12:39 PM, johnf wrote: > I paid for and downloaded a paper from O'Reilly books on what I > thought was going to be on 'pyparser'. But that turned out to be mostly > theory. And nothing about the use of pyparser. Was that "Getting Started with Pyparsing" ? I would be very

Re: [Tutor] python parser

2008-12-22 Thread johnf
On Monday 22 December 2008 10:34:12 am Alan Gauld wrote: > "johnf" wrote > > > So I ask you guys is there a link to a practical tutorial that > > provides hands > > on information on the use of a python parser. > > One place to loook for all things to do with processing text is Mertz' > Text > Pro

Re: [Tutor] python parser

2008-12-22 Thread bob gailer
johnf wrote: On Monday 22 December 2008 09:15:13 am bob gailer wrote: johnf wrote: I've been in the programming business for over 20 years and I have never had a need for a parser. But recently I have need to convert code from one language to a my new language python. Pray tell

Re: [Tutor] python parser

2008-12-22 Thread Alan Gauld
"johnf" wrote So I ask you guys is there a link to a practical tutorial that provides hands on information on the use of a python parser. One place to loook for all things to do with processing text is Mertz' Text Processing in Python. He discuissed parsers in some detail although, infuri

Re: [Tutor] python parser

2008-12-22 Thread johnf
On Monday 22 December 2008 09:15:13 am bob gailer wrote: > johnf wrote: > > I've been in the programming business for over 20 years and I have never > > had a need for a parser. But recently I have need to convert code from > > one language to a my new language python. > > Pray tell: what is the o

Re: [Tutor] python parser

2008-12-22 Thread Andreas Kostyrka
Am Mon, 22 Dec 2008 07:18:41 -0800 schrieb johnf : > I've been in the programming business for over 20 years and I have > never had a need for a parser. But recently I have need to convert > code from one language to a my new language python. What a better > way to learn the new language python

Re: [Tutor] python parser

2008-12-22 Thread bob gailer
johnf wrote: I've been in the programming business for over 20 years and I have never had a need for a parser. But recently I have need to convert code from one language to a my new language python. Pray tell: what is the other language, and why do you want to convert programs? I assume

[Tutor] python parser

2008-12-22 Thread johnf
I've been in the programming business for over 20 years and I have never had a need for a parser. But recently I have need to convert code from one language to a my new language python. What a better way to learn the new language python than a new project. I decided it might be time to learn