11# ScriptBasic for Java
22
3+ This project needs volunteers who read the outdated documentation and update it in Markdown or ASCIIDOC.
4+ If you consider contributing please fork the project and start writing documentation. I will happily credit.
5+
36[ ![ Build Status] ( https://travis-ci.org/verhas/jScriptBasic.svg?branch=master )] ( https://travis-ci.org/verhas/jScriptBasic )
47
58ScriptBasic for Java is a BASIC interpreter that can be embedded into Java programs. With SB4J you can
69script your application (or let the users to script) in good old BASIC. You can start in the JVM an
7- interpreter and execute for example
10+ interpreter and execute for example:
811
912```
1013PRINT "hello, I am BASIC"
@@ -23,7 +26,7 @@ To embed the interpreter into your application you need to use SB4J as a depende
2326 <dependency>
2427 <groupId>com.scriptbasic</groupId>
2528 <artifactId>jscriptbasic</artifactId>
26- <version>2.0.0 </version>
29+ <version>2.1.1 </version>
2730 </dependency>
2831```
2932
@@ -32,7 +35,7 @@ and then use the JSR223 defined scripting interface or use the ScriptBasic speci
3235The simplest way is to use the line
3336
3437```
35- ScriptBasic.getEngine ().eval("PRINT \"hello world\"");
38+ ScriptBasic.engine ().eval("PRINT \"hello world\"");
3639```
3740
3841to get an execution engine and ` eval() ` the program source. There are other possibilities. You can
@@ -43,7 +46,7 @@ The BASIC language contains all the usual BASIC features, subroutines, local and
4346conditional statements, loops and so on. (No GOTO!) Your host program can directly call subroutines, read
4447and write global variables, provide methods implemented in Java to be called from BASIC code.
4548
46- The interpreter can safely be integrated to applications as the BASIC programs can not access
49+ The interpreter can safely be integrated to applications as the BASIC programs cannot access
4750arbitrary objects and call Java methods at their will and there are other features that help
4851controlling the scripts in the application. The language is a "no freak out" language, so you
4952can put the programming possibility into the hands of users who would not ever touch Python, Groovy
0 commit comments