scripting-language

Debugging a scripting language like ruby

痴心易碎 提交于 2019-12-05 06:07:21
I am basically from the world of C language programming, now delving into the world of scripting languages like Ruby and Python. I am wondering how to do debugging. At present the steps I follow is, I complete a large script, Comment everything but the portion I want to check Execute the script Though it works, I am not able to debug like how I would do in, say, a VC++ environment or something like that. My question is, is there any better way of debugging? Note: I guess it may be a repeated question, if so, please point me to the answer. Your sequence seems entirely backwards to me. Here's

VB6 Parser/Lexer/Scripter

橙三吉。 提交于 2019-12-04 14:17:13
问题 I've got a game in VB6 and it works great and all, but I have been toying with the idea of creating a scripting engine. Ii'm thinking I'd like VB6 to read in flat text script files for me and then lex/parse/execute them. I have good programming experience, and I've built a simple C compiler, as well as a LOGO emulator before. My question is: Are there any tools that I can use, like Lexx/Yakk/Bison to help me? How should I approach this problem in regards to lexing, parsing, and feeding the

How do I set up jsr223 scripting with scala as scripting language

泪湿孤枕 提交于 2019-12-04 05:26:47
So far I have tried the sling implementation for jsr223 scripting for scala, but was not able to get it set up correctly. when I do this: public static void main(String[] args) { try { new ScriptEngineManager().getEngineByName("scala"). eval("object HelloWorld {def main(args: Array[String]) { println(\"Hello, world!\") }}"); } catch (ScriptException e) { e.printStackTrace(); } } I got nothing but: javax.script.ScriptException: ERROR org.apache.sling.scripting.scala.Script line 13 : not found: type Script at org.apache.sling.scripting.scala.ScalaScriptEngine.eval(ScalaScriptEngine.scala:117) at

Display a drop-down/combo box in VB Script

半城伤御伤魂 提交于 2019-12-04 04:48:06
I'm trying to create a drop-down/combo box in VB Script. As per my understanding we need to create an instance for Internet Explorer and create a drop-down/combo box, something like this: set oIE = createObject("InternetExplorer.Application") with oIE .Navigate "about:blank" Do until .ReadyState = 4 : WScript.Sleep 100 : Loop set oDoc = .document .Visible = true end with with oDoc .open .writeln "<html><head><title>ComboBox Example</title></head>" .writeln "<body scroll=no><object " .writeln "classid=clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3" .writeln "id=ComboBox1 width=400></object><p>"

Is there a good scripting Pascal-like language for Delphi?

蓝咒 提交于 2019-12-03 11:53:12
问题 I'm looking for a good free scripting engine for Delphi. I want to add scripting to an application so that I can write small test scripts. Specifically I need: Pascal-like syntax current (I looked at RemObjects Pascal Scripting but it is "obsolete" according to a posting I saw). I don't need full language support, just the basics. I saw this: https://stackoverflow.com/questions/226135/scripting-library-for-delphi but I'm assuming things have moved on a little since then. All I want to be able

Is Bash an interpreted language?

独自空忆成欢 提交于 2019-12-03 10:53:28
From what I've read so far, bash seems to fit the defintion of an interpreted language: it is not compiled into a lower format every statement ends up calling a subroutine / set of subroutines already translated into machine code (i.e. echo foo calls a precompiled executable) the interpreter itself, bash , has already been compiled However, I could not find a reference to bash on Wikipedia's page for interpreted languages , or by extensive searches on Google. I've also found a page on Programmers Stack Exchange that seems to imply that bash is not an interpreted language- if it's not, then

VB6 Parser/Lexer/Scripter

£可爱£侵袭症+ 提交于 2019-12-03 09:01:32
I've got a game in VB6 and it works great and all, but I have been toying with the idea of creating a scripting engine. Ii'm thinking I'd like VB6 to read in flat text script files for me and then lex/parse/execute them. I have good programming experience, and I've built a simple C compiler, as well as a LOGO emulator before. My question is: Are there any tools that I can use, like Lexx/Yakk/Bison to help me? How should I approach this problem in regards to lexing, parsing, and feeding the commands back to VB6 so I can handle them? Is this idea a BAD IDEA in the sense that there are too many

Is there a good scripting Pascal-like language for Delphi?

六眼飞鱼酱① 提交于 2019-12-03 03:14:46
I'm looking for a good free scripting engine for Delphi. I want to add scripting to an application so that I can write small test scripts. Specifically I need: Pascal-like syntax current (I looked at RemObjects Pascal Scripting but it is "obsolete" according to a posting I saw). I don't need full language support, just the basics. I saw this: https://stackoverflow.com/questions/226135/scripting-library-for-delphi but I'm assuming things have moved on a little since then. All I want to be able to do is add a memo component to my program, and at run-time add a fragment of source to the memo and

JMeter add velocity language to JSR 223 Sampler

北慕城南 提交于 2019-12-02 20:08:50
问题 I want to use velocity language as Scripting language in JMeter's JSR 223 Sampler . According to the list velocity can be used in JSR223, According to the answer velocity should be added to JMeter classpath for discovery of available scripting engines. How can I add velocity as a Scripting engine in JMeter? 回答1: Download new velocity engine scripting version 2.0 in order to support scripting engine. Put velocity-engine-scripting-2.0.jar in JMeter's lib folder. When JMeter loaded it can find

JMeter add velocity language to JSR 223 Sampler

懵懂的女人 提交于 2019-12-02 08:42:50
I want to use velocity language as Scripting language in JMeter's JSR 223 Sampler . According to the list velocity can be used in JSR223, According to the answer velocity should be added to JMeter classpath for discovery of available scripting engines. How can I add velocity as a Scripting engine in JMeter? Download new velocity engine scripting version 2.0 in order to support scripting engine. Put velocity-engine-scripting-2.0.jar in JMeter's lib folder. When JMeter loaded it can find velocity as scripting engine and use it. EDIT Also add relevant velocity jar(s) as velocity-engine-core-2.0