Re: Pascal code checker!

2007-12-13 Thread Zentrader
The OP was not talking about a Python program to check the Pascal program as I read it > to make application in python > that would send code (text) to pascal compiler...and it would return > result and then application would show that result. So he/she/it would want subprocess to compile the Pas

Re: Pascal code checker!

2007-12-13 Thread Neil Cerutti
On 2007-12-13, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 13/12/2007, Tim Chase <[EMAIL PROTECTED]> wrote: >> >> Oof! Fond as I am of promoting pyparsing, writing a Pascal >> >> compiler (or even just syntax checker) is not a job I would >> >> tackle lightly, much less suggest to a new Python

Re: Pascal code checker!

2007-12-12 Thread Dotan Cohen
On 13/12/2007, Tim Chase <[EMAIL PROTECTED]> wrote: > >> Oof! Fond as I am of promoting pyparsing, writing a Pascal > >> compiler (or even just syntax checker) is not a job I would > >> tackle lightly, much less suggest to a new Python developer. > > True enough...thus my weeks/months/years est

Re: Pascal code checker!

2007-12-12 Thread Steven D'Aprano
On Wed, 12 Dec 2007 16:53:15 -0600, Tim Chase wrote: > >> Oof! Fond as I am of promoting pyparsing, writing a Pascal > >> compiler (or even just syntax checker) is not a job I would tackle > >> lightly, much less suggest to a new Python developer. > > True enough...thus my weeks/months/years

Re: Pascal code checker!

2007-12-12 Thread Tim Chase
>> Oof! Fond as I am of promoting pyparsing, writing a Pascal >> compiler (or even just syntax checker) is not a job I would >> tackle lightly, much less suggest to a new Python developer. True enough...thus my weeks/months/years estimate for such an undertaking :) But if not mentioned, you

Re: Pascal code checker!

2007-12-12 Thread Paul McGuire
On Dec 12, 3:03 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > OTOH, you could actually parse the pascal file(s). This gives > you infinte flexibility to do whatever you want with the > parse-tree. Things get hairy when you have included ("uses") > files, and you also have to write up a grammar for P

Re: Pascal code checker!

2007-12-12 Thread Grant Edwards
On 2007-12-12, SMALLp <[EMAIL PROTECTED]> wrote: > Hy! I desperately need help! > > I need to make application that would accept Pascal code and check if it > returns good results. That application is called a Pascal compiler. > My idea is (from a beginner point of view) to make application in

Re: Pascal code checker!

2007-12-12 Thread Tim Chase
> I need to make application that would accept Pascal code and check if it > returns good results. well, it depends on how much work you want your program to do. My understanding is that most compilers will return a non-zero error code when there's some sort of problem. Thus, you could just s

Re: Pascal code checker!

2007-12-12 Thread Zentrader
You can use subprocess to run the pascal program and capture the output/results. See here http://blog.doughellmann.com/2007/07/pymotw-subprocess.html -- http://mail.python.org/mailman/listinfo/python-list

Pascal code checker!

2007-12-12 Thread SMALLp
Hy! I desperately need help! I need to make application that would accept Pascal code and check if it returns good results. My idea is (from a beginner point of view) to make application in python that would send code (text) to pascal compiler (Free pascal compiler that can be used from comman