interpreter

How do I change my build configuration so that cmd points to actual location of the python interpreter?

谁都会走 提交于 2019-12-19 21:43:51
问题 When I try to run python or any language through Sublime Text 2, all it says is [Error 2] The system cannot find the file specified [cmd: [u'python', u'-u', u'C:\\Users\\Owner\\Desktop\\RandomStuff\\python\\java\\bob.java']] [dir: C:\Users\Owner\Desktop\RandomStuff\python\java] [path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.7.0_03\bin] [Finished] I was told to change my

Could .NET be parsed and evaluated at runtime

橙三吉。 提交于 2019-12-19 09:33:10
问题 I thought it would be fun if I could write vb.net or c# code at runtime and the interpreter would automatically parse it like python does it, so I made a little program, which would do something similar. Basically it looks like this: InputArgs = Console.ReadLine() ParseInput(InputArgs.Split(" ")) Private Sub ParseInput(Args as List(Of String), Optional TempArgs as List(Of String)) Dim arg as string = Args(0) If arg = ".." then ... elseif arg = ".." then ... end if End Sub I know it's not a

PHP interpreter gets undefined constant OCI_COMMIT_ON_SUCCESS with ADODB

懵懂的女人 提交于 2019-12-19 09:03:36
问题 I wrote a php script that must be run on the php interpreter (Without Apache), which uses the adodb library with an Oracle database, but when I try to run it, I'm getting the following error: PHP Notice: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS' in c:\proyect\backend\libraries\adodb\adodb.inc.php on line 4248 I've checked, and have both the php_oci8 and php_oci8_11g enabled, so the constant SHOULD be defined. Also, when I run this script WITH Apache, it

Lua global variable containing path to current file?

我怕爱的太早我们不能终老 提交于 2019-12-19 07:09:13
问题 Is there a global variable in Lua that contains the path to the file currently being interpreted? Something like Python's __file__ variable? I ran a quick for k, v in pairs(_G) do print(k) end in the interpreter to see if I could find anything. Only the following variables were listed? string xpcall package tostring print os unpack require getfenv setmetatable next assert tonumber io rawequal collectgarbage getmetatable module rawset math debug pcall table newproxy type coroutine _G select

What is the difference between a REPL and an interpreter?

不羁岁月 提交于 2019-12-19 02:49:39
问题 Is there any technical difference between a REPL and an interpreter? 回答1: Interactive interpreters use REPLs. An interpreter is not required to have one. You can run Python, for example, in non-interactive mode (on a file) and it will not use a read-eval-print loop. 来源: https://stackoverflow.com/questions/3424756/what-is-the-difference-between-a-repl-and-an-interpreter

Can Perl be “statically” parsed?

别等时光非礼了梦想. 提交于 2019-12-18 12:28:38
问题 An article called "Perl cannot be parsed, a formal proof" is doing the rounds. So, does Perl decide the meaning of its parsed code at "run-time" or "compile-time"? In some discussions I've read, I get the impression the arguments stem from imprecise terminology, so please try to define your technical terms in your answer. I have deliberately not defined "run-time", "statically" or "parsed" so that I can get perspectives from people who perhaps define those terms differently to me. Edit: This

OK Programming language from USB stick with no installation

本秂侑毒 提交于 2019-12-18 11:56:20
问题 I'm looking for a compiler or interpreter for a language with basic math support and File IO which can be executed directly from a memorystick in either Linux or Windows. Built in functionality for basic datastructures and sorting/searching would be a plus. (I've read about movable python, but it only supports windows) Thank you 回答1: Not sure what are the issues there for the other languages, but I am pretty sure that Lua will work fine on such environment. It is perfect for your requirements

Why is string comparison so fast in python?

雨燕双飞 提交于 2019-12-18 11:44:16
问题 I became curious to understand the internals of how string comparison works in python when I was solving the following example algorithm problem: Given two strings, return the length of the longest common prefix Solution 1: charByChar My intuition told me that the optimal solution would be to start with one cursor at the beginning of both words and iterate forward until the prefixes no longer match. Something like def charByChar(smaller, bigger): assert len(smaller) <= len(bigger) for p in

web based interpreter for language R [closed]

喜欢而已 提交于 2019-12-18 11:35:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for a web based interpreter for the language R. To be more precise , i am looking for a IDE like http://codepad.org/ where i can provide the code and the server should execute and provide me with the output. I went through applications like Rapache but then they don't fit my requirement as they are

How do I get a scheme interpreter working inside Emacs?

被刻印的时光 ゝ 提交于 2019-12-18 10:26:10
问题 I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and forth between files of scheme code and the interactive interpreter and so forth. However, I'm fairly new to Emacs and have not as of yet been able to get this to work or find one clear set of instructions to use in getting it to work.