interpreter

Are there any FreeRTOS interpreted language libraries available?

无人久伴 提交于 2020-01-03 07:19:05
问题 I work for a company that created firmware for several device using FreeRTOS. Lately our request for new features has surpassed how much work our firmware engineers are capable of, but we can't afford to hire anyone new right now either. Making even tiny changes requires firmware people to go in and modify things at a very low level. I've been looking for some sort of interpreted language project for FreeRTOS that would let us implement new features at a higher level. Ideally I would like to

Why is MRI the mainstream Ruby interpreter, while it performs the worst? [closed]

大城市里の小女人 提交于 2020-01-03 05:10:33
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Having seen this interpreter comparison graph, I wondered the reasons behind the MRI's mainstream usage, although it performs the

How can I start an interactive console for VBS?

五迷三道 提交于 2020-01-01 11:49:10
问题 Very similar to this question: How can I start an interactive console for Perl? I just want to be able to start entering VBS statements, one at a time, and have them evaluated straight away, like Python's IDLE. 回答1: I wrote this a couple years ago. It's based on this blog post (archived here), but with a couple enhancements. Essentially it's a REPL (Read, Execute, Print, Loop) using the Execute statement: Do While True WScript.StdOut.Write(">>> ") line = Trim(WScript.StdIn.ReadLine) If LCase

What language can a junior programmer implement an interpreter for it?

ⅰ亾dé卋堺 提交于 2020-01-01 10:57:07
问题 My college is going to start soon, but I want to do something in the remaining weeks :) I've taken a course last semester about programming languages and I want to bring my knowledge into reality. What simple , elegant language can a junior programmer implement an interpreter for? I don't mind if the language is very small or experimental. 回答1: RPAL compiles down to lambda expressions, which can then be interpreted. 回答2: assembly I'm not talking about compiling it to machine code. Just an

Is it possible to use arrow keys in OCaml interpreter?

末鹿安然 提交于 2020-01-01 01:17:23
问题 Everytime I use these keys in the interpreter I keep getting symbols like this appearing: [[D^[[C I'm using Linux Mint 12 in ZSH, however I'm getting the same result in Ubuntu with bash. Also, same thing in ssh. 回答1: The stock OCaml toplevel doesn't have line editing built in. I use rlwrap : $ cat bin/ocaml #!/bin/sh exec rlwrap /usr/local/bin/ocaml "$@" Using the toplevel without something like this is quite painful, in my opinion! Other possibilities are to run the toplevel under emacs (a

Ruby: looking for ruby-embeddable interpreter or scripting language [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-30 13:35:08
问题 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 . In response to a previous question, @Pablo Fernandez suggested I implement a simple interpreter using Treetop to embed in my RoR application. It looks like a good approach. But I can't help but wonder: hasn't anyone written a toy interpreter to embed in a Ruby app? I don't need any I/O functions -- in fact, I

What is the exact definition of a Metacircular Interpreter?

安稳与你 提交于 2019-12-29 03:40:06
问题 Is it legal to call a C compiler written in C or a PHP interpreter written in PHP metacircular? Is this definition valid only for languages of a specific type, like Lisp? In short, what are the conditions that an interpreter should satisfy for being called Metacircular? 回答1: A metacircular interpreter is an interpreter written in a (possibly more basic) implementation of the same language. This is usually done to experiment with adding new features to a language, or creating a different

C# Scripting language

梦想的初衷 提交于 2019-12-28 11:55:31
问题 This is a somewhat odd question. I want to provide a scripting language for modding games that I build for XNA. If I was deplying these games for the PC then I would just be able to use C# files, compiled at runtime (Using reflection.emit) as scripts and that would be fine - a nice simple way to mod the game. However, the .net compact framework (which is what the xbox provides) does not support reflection.emit, so how can I write a scripting language taking this into account? Are there any

Is it possible to have multiple PyPlot windows? Or am I limited to subplots?

时光怂恿深爱的人放手 提交于 2019-12-28 04:00:10
问题 I'm not sure how to word my question more clearly. Basically, is PyPlot limited to one instance/window? Any hack or workaround I try either causes my program to freeze or for the second pyplot window to be queued until the first one is closed. 回答1: Sure, just open a new figure: import matplotlib.pyplot as plt plt.plot(range(10)) plt.figure() plt.plot(range(10), 'ro-') plt.figure(), plt.plot(...) plt.show() # only do this once, at the end If you're running this in the default python

How to repeat last command in python interpreter shell?

a 夏天 提交于 2019-12-28 03:18:12
问题 How do I repeat the last command? The usual keys: Up, Ctrl+Up, Alt-p don't work. They produce nonsensical characters. (ve)[kakarukeys@localhost ve]$ python Python 2.6.6 (r266:84292, Nov 15 2010, 21:48:32) [GCC 4.4.4 20100630 (Red Hat 4.4.4-10)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print "hello world" hello world >>> ^[[A File "<stdin>", line 1 ^ SyntaxError: invalid syntax >>> ^[[1;5A File "<stdin>", line 1 [1;5A ^ SyntaxError: invalid syntax >>