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
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
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
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
>> 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
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
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
> 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
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
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
10 matches
Mail list logo