Initial commit after migrating repo and assuring the product builds and tests pass

This commit is contained in:
Johanna Dorothea Reichmann 2019-06-23 15:02:23 +02:00
commit 01b1f2a807
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
300 changed files with 7193 additions and 0 deletions

7
.classpath Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="output" path="bin"/>
</classpath>

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/bin/
/gradle/
/.gradle/

17
.project Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>pbi-core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

32
META-INF/MANIFEST.MF Normal file
View File

@ -0,0 +1,32 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: pbi
Bundle-SymbolicName: com.github.eliasgroll.pbi.interpreter
Bundle-Version: 1.0.0.qualifier
Export-Package: edu.fichte.pbi.prgm,
edu.fichte.pbi.prgm.cmd,
edu.fichte.pbi.prgm.cmd.control,
edu.fichte.pbi.prgm.cmd.control.power,
edu.fichte.pbi.prgm.cmd.debug,
edu.fichte.pbi.prgm.cmd.io,
edu.fichte.pbi.prgm.cmd.io.sound,
edu.fichte.pbi.prgm.cmd.loop,
edu.fichte.pbi.prgm.cmd.num,
edu.fichte.pbi.prgm.cmd.storage,
edu.fichte.pbi.prgm.cmd.time,
edu.fichte.pbi.prgm.err,
edu.fichte.pbi.prgm.err.parsing,
edu.fichte.pbi.prgm.err.runtime,
edu.fichte.pbi.prgm.parse,
edu.fichte.pbi.prgm.parse.arithmetical,
edu.fichte.pbi.prgm.parse.relational,
edu.fichte.pbi.prgm.struct,
edu.fichte.pbi.prgm.war,
edu.fichte.pbi.run,
edu.fichte.pbi.run.app,
edu.fichte.pbi.util,
edu.fichte.pbi.vm,
edu.fichte.pbi.vm.storage,
edu.fichte.pbi.vm.var,
edu.fichte.pbi.vm.var.format
Bundle-RequiredExecutionEnvironment: J2SE-1.5

21
META-INF/license.txt Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) [2015] [Elias Groll and Johanna Reichmann]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# pbi
The πBASIC Interpreter
================
This is a java program that interprets the Basic Stamp 1 Basic language PBasic (®).
Run it on linux/mac with pbi.sh or on windows with pbi.bat (You can also run it on every system with java -jar pbi.jar).
Use the filename as last argument.
Other flags are: `-noinfo` (removes the output of additional information about the actual command),
`-nowarn` (removes the output of warnings), and
`-fast` (does not slow down the execution to the level of bs1).
Additional contents are: `ACTIVATEINFO` (a command that activates the output of additional information at runtime), `DEACTIVATEINFO` (a command that deactivates the output of additional information at runtime), `DEBUG EEPROM` (a debug argument that outputs the composition of the EEPROM at runtime), `SYMBOL new = NEW 16` (a command that adds a new variable of 16 bits to the system), `SYSCLOCK` (A variable which returns System.currentTimeMillis() - the system-time), `BREAKPOINT` (a command that loops the evaluation of the user-input as a single command) and `ASSERT` (a command that creates an error if the following expression is false).
A GUI is coming soon.
(written by Elias Groll, Johanna Reichmann)

43
build.gradle Normal file
View File

@ -0,0 +1,43 @@
apply plugin: 'java'
apply plugin: 'eclipse'
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'src'
}
}
}
jar {
baseName = 'pbi'
manifest {
attributes(
"Main-Class": "edu.fichte.pbi.run.ConsoleMain",
"Compile-Date": new java.text.SimpleDateFormat("yyyyMMdd HHmmss").format(new java.util.Date())
)
}
}
targetCompatibility = "1.7"
sourceCompatibility = "1.7"
task srcZip (type: Zip){
baseName = 'src'
from ('src') {
exclude '**/.*'
}
}
task dist(type: Zip) {
baseName = 'pbi'
from jar
from srcZip
from 'shellscripts'
from 'src/META-INF/license.txt'
}
assemble.dependsOn dist

4
build.properties Normal file
View File

@ -0,0 +1,4 @@
source.. = src/
bin.includes = META-INF/,\
.
jre.compilation.profile = JavaSE-1.7

Some files were not shown because too many files have changed in this diff Show More