Member Avatar

A feature of the doctest module can be useful when people copy and paste their idle window in the python forum: the ability to transform an example from the python interpreter into python code without the prompts [icode]>>>, ...[/icode] and the output messages. The script below permits to use this function from the command line.

Member Avatar
3
106
Member Avatar

I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.

Member Avatar
0
39
Member Avatar

I am learning about compilers right now and search for a source code in C as my guideline to better understand how it works. I found this online from this link [Click Here](http://www.programmersheaven.com/download/16060/Download.aspx) and the code is quite long. Even there are comments in the code, I still find it a bit difficult to trace/follow. I would appreciate it if someone can put more detailed comments in this source code to help me better understand it. Thank you very much! :) /* A tiny BASIC interpreter */ #include "stdio.h" #include "setjmp.h" #include "math.h" #include "ctype.h" #include "stdlib.h" #define NUM_LAB 100 …

Member Avatar
0
40
Member Avatar

I need to know how to do a assembly program that accepts a string with the Instruction format and understand it and then execute it Input: String as“mov eax,10” Output: The string instruction will be executed.

Member Avatar
0
3
Member Avatar

I would like to embed the python interpreter, but not in the way most other people do. I don't need to multi-thread unless it's necessary to do as follows... What I need is control over when execution happens. More specifically, I would like to use a python script to call some C++ functions that modify variables in my program, and I would like to PAUSE the python interpreter's execution whenever it finishes calling specific functions, and return execution to my C++ program. I would like to be able to resume execution in the python interpreter later, from the same place …

Member Avatar
0
2
Member Avatar

Has anyone tried Microsoft's Python Tools for visual studio? I read on /. that it's suppose to support any interpreter not just Ironpython, but I'm only seeing Cpython and Ironpython. Any feedback? [URL="http://pytools.codeplex.com/"]http://pytools.codeplex.com/[/URL]

0
1
Member Avatar

There is many more stupid things to do than to read words of one of the best if not the best: [URL="http://norvig.com/lispy2.html"](An ((Even Better) Lisp) Interpreter (in Python))[/URL]

Member Avatar
1
7
Member Avatar

I know that many people have programed for the Ipod, and have used a lot of different languages, but I can't figure out how to use python to make apps. I understand that I need an interpreter, but I don't know where to find one. Also, how do I import modules? I want to do this without jail-breaking, hacking, unlocking, or whatever you want to call it. Thanks in advance, lucksoar

Member Avatar
0
3
Member Avatar

Hello , For the given snippet , why the result comes out to be 2..while it should be 3 , if the expression is interpreted from Left-Right or .75 for vice-versa. >>>3/2*2 2 >>>

Member Avatar
0
3
Member Avatar

I read a lot about the comparison between compiler and an interpreter, but what i found that, compiler compiles a file into .obj file which after linking becomes .exe file. But in the case of an interpreter, it interprets the code line by line and executes it directly... My question is:- WHILE INTERPRETATION, HOW DOES THE INTERPRETER MAKES REFERENCE TO A LIBRARY FUNCTION OR A CODE THAT IS WRITTEN A LITTLE LATER THAN THE CURRENT CODE THAT IS BEING EXECUTED? AND WHERE IS THE INTERPRETED CODE SAVED IMMEDIATELY AFTER EXECUTION? AS I HAD A DOUBT HOW CAN IT BE EXECUTED …

Member Avatar
-1
2
Member Avatar

Ok.. so uptil now I've been using the DOS compiler and IDE for C++, version 3.0 by borland...(which is like ancient history).. But now I think it's about time to upgrade :P So since I have been away from C++ for a loooooong time, I need to start from scratch. Which means, I need to know what to download for the compiler, IDE, blah blah blah anything important that I might need while programming for c++. Im using windows 7 (on my macbook pro :P). I have no trouble running c++ on the OSX (using G++ ofc). But yeah, I …

Member Avatar
0
9
Member Avatar

Looking for 'unqualified exec is not allowed in function' lead here... This is a collaborative thing... so here's all of the code (some parts just description of eventual 'future' implementation) for a [I]universal code parser[/I] (biiig name for a smaaaall thing, that is not working at all yet, and is limited to python)... [code=python] #!/usr/bin/python2.5 ## acknowledgements: python, http://www.faqs.org/docs/diveintopython/regression_divein.html, ... """ Moody documentation style... Philosophy Errors are part of the process, so we try... and catch... Vars caller: for eventual context stuff callee: what you think? ok... the path called... called: whaaaat you think? pffff... the item (method, variable...) we …

0
1
Member Avatar

Hello, I have just started with ASP, I knew that IIS cannot be installed on Windows xp Home, so I installed Abyss, but it's quite different from wamp,xamp that I was using before with php. Can someone help me run ASP on it? I have followed the tutorial in this link: [url]http://www.mono-project.com/FastCGI_Abyss[/url] But I keep getting an error whenever I try to add an interpreter I get this error: "Error in Interpreter: File not found" I have attached a screen shot. How can I solve the problem? I might post for other questions if I face other problems. Thanks.

Member Avatar
0
2
Member Avatar

Can someone explain it to me simple what it is? I read quite a lot of articles but don't understand how to make one. Are there some rules to apply, or is it just a mental programming technique? Please and thanks in advance!

Member Avatar
0
2
Member Avatar

i need to make a program that would basically monitor the raw data from the firewire port on my pc, encode it to ethernet protocol, and send to mac. and on the mac create a virtual firewire mounting point and interpret data back to firewire, i would imagine this would be possible. i only need this to run the fw400 so the cat5 would have 2 "pins" extra, i don't see how this would be impossible with an interpreter on both ends PC is 2.53 c2duo 4gbram running Linux mint and windows 7 Mac is Imac intel 2.4 4gbram running …

Member Avatar
0
3
Member Avatar

Hello, I'd like to get started with PostScript. I'm completely new to it and would be very grateful to you for any hints. And my first question is (please don't ridicule me): how do I make a PostScript file? I mean, a plain text file with PostScript code, produced by hand. I read some chapters of a few tutorials and learned basics of the language's syntax, but didn't find anything on how to run it. First, do I have to make .ps the file's extension? Second, do I need (or when do I need) the %! command at the beginning …

Member Avatar
0
4

The End.