diff --git a/pom.xml b/pom.xml index 7b0895f..b5cc61a 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA power-web power-wiki + power-shark power-sound power-stat diff --git a/power-shark/pom.xml b/power-shark/pom.xml new file mode 100644 index 0000000..4b7471b --- /dev/null +++ b/power-shark/pom.xml @@ -0,0 +1,52 @@ + + + + 4.0.0 + + + org.nanoboot.powerframework + power-framework + 2.0.0-SNAPSHOT + + + power-shark + jar + + Power Shark + Shark programming language + + + + + org.nanoboot.powerframework + power-core + ${power.version} + + + org.projectlombok + ${lombok.version} + lombok + provided + + + + diff --git a/power-shark/src/main/java/module-info.java b/power-shark/src/main/java/module-info.java new file mode 100644 index 0000000..b2f639e --- /dev/null +++ b/power-shark/src/main/java/module-info.java @@ -0,0 +1,33 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +//TODO: collections should have methods returning this + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +module powerframework.shark { + requires powerframework.core; + requires lombok; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/ByteCode.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/ByteCode.java new file mode 100644 index 0000000..c9152cc --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/ByteCode.java @@ -0,0 +1,33 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.compiler; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class ByteCode { + + private final byte[] byteArray = new byte[1024]; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/Compiler.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/Compiler.java new file mode 100644 index 0000000..effc11c --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/compiler/Compiler.java @@ -0,0 +1,42 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.compiler; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Compiler { + /* + * ByteCode byteCode = Compiler.compile("//some code"); + * + * MoleCode moleCode= new MoleCode(); + * + * Function functionMultiplyAndAddOne= new Function("multiplyAndAddOne", "num", new VariableDeclaration("arg1","num"), new VariableDeclaration("arg2","num")); + * functionMultiplyAndAddOne.addStatement(new Return(new IncrementByOne(new Multiply(arg1,arg2)))); + * moleCode.addStatement(functionMultiplyAndAddOne); + * mole.addFunctionCall("multiplyAndAddOne",4, 6); + * ByteCode byteCode2 = Compiler.compile(moleCode); + */ +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/MoleCode.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/MoleCode.java new file mode 100644 index 0000000..f960d4e --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/MoleCode.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class MoleCode { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/expressions/FunctionCall.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/expressions/FunctionCall.java new file mode 100644 index 0000000..8a901ef --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/expressions/FunctionCall.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.expressions; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class FunctionCall { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/keywords/KeyWords.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/keywords/KeyWords.java new file mode 100644 index 0000000..05c471a --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/keywords/KeyWords.java @@ -0,0 +1,169 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.keywords; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public enum KeyWords { + + /** + * + */ + IMPORT("import"), + + /** + * + */ + NUM("num"), + + /** + * + */ + BIGNUM("bignum"), + + /** + * + */ + DEC("dec"), + + /** + * + */ + BIGDEC("bigdec"), + + /** + * + */ + CHAR("char"), + + /** + * + */ + BOOL("bool"), + + /** + * + */ + FUN("fun"), + + /** + * + */ + ENDFUN("endfun"), + + /** + * + */ + STRUCT("struct"), + + /** + * + */ + ENDSTRUCT("endstruct"), + + /** + * + */ + FIN("fin"), + + /** + * + */ + IF("if"), + + /** + * + */ + THEN("then"), + + /** + * + */ + ELSE("else"), + + /** + * + */ + DO("do"), + + /** + * + */ + ENDDO("enddo"), + + /** + * + */ + SWITCH("switch"), + + /** + * + */ + CASE("case"), + + /** + * + */ + DEFAULT("default"), + + /** + * + */ + BREAK("break"), + + /** + * + */ + CONTINUE("continue"), + + /** + * + */ + GOTO("goto"), + + /** + * + */ + LABEL("label"), + + /** + * + */ + RETURN("return"); + private final String value; + + KeyWords(String value) { + this.value = value; + } + + /** + * + * @return + */ + public String getValue() { + return value; + } +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigDec.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigDec.java new file mode 100644 index 0000000..ba6399d --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigDec.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class BigDec { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigNum.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigNum.java new file mode 100644 index 0000000..df9b966 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/BigNum.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class BigNum { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Bool.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Bool.java new file mode 100644 index 0000000..26441f6 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Bool.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Bool { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Char.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Char.java new file mode 100644 index 0000000..c120315 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Char.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Char { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Dec.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Dec.java new file mode 100644 index 0000000..952721e --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Dec.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Dec { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Num.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Num.java new file mode 100644 index 0000000..b2b29a9 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Num.java @@ -0,0 +1,33 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Num { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Str.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Str.java new file mode 100644 index 0000000..a83f3aa --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/literals/Str.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.literals; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class Str { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Add.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Add.java new file mode 100644 index 0000000..66ffd7a --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Add.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Add { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/And.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/And.java new file mode 100644 index 0000000..5b63fef --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/And.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class And { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/DecrementByOne.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/DecrementByOne.java new file mode 100644 index 0000000..31f9d91 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/DecrementByOne.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class DecrementByOne { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Divide.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Divide.java new file mode 100644 index 0000000..eec8e74 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Divide.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Divide { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/IncrementByOne.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/IncrementByOne.java new file mode 100644 index 0000000..d20cc9c --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/IncrementByOne.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class IncrementByOne { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Multiply.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Multiply.java new file mode 100644 index 0000000..9693cb1 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Multiply.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Multiply { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Not.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Not.java new file mode 100644 index 0000000..2385af8 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Not.java @@ -0,0 +1,33 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Not { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Or.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Or.java new file mode 100644 index 0000000..5ff3a01 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/operators/Or.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.operators; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class Or { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Break.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Break.java new file mode 100644 index 0000000..ea689e3 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Break.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Break { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Continue.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Continue.java new file mode 100644 index 0000000..ffb22fa --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Continue.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Continue { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/DoBlock.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/DoBlock.java new file mode 100644 index 0000000..0123a3d --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/DoBlock.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class DoBlock { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Function.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Function.java new file mode 100644 index 0000000..1f03fd1 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Function.java @@ -0,0 +1,37 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +import java.util.*; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Function { + + private String returnType; + private String name; + private ArrayList arguments = null; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/IfBlock.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/IfBlock.java new file mode 100644 index 0000000..19d3975 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/IfBlock.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class IfBlock { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Import.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Import.java new file mode 100644 index 0000000..372e2b3 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Import.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ + +public class Import { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Return.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Return.java new file mode 100644 index 0000000..62bd14d --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Return.java @@ -0,0 +1,30 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class Return { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/StatementParser.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/StatementParser.java new file mode 100644 index 0000000..1f7d446 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/StatementParser.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class StatementParser { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Struct.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Struct.java new file mode 100644 index 0000000..635c057 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/Struct.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class Struct { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/SwitchBlock.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/SwitchBlock.java new file mode 100644 index 0000000..9c505c5 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/SwitchBlock.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class SwitchBlock { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableAssignment.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableAssignment.java new file mode 100644 index 0000000..758287c --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableAssignment.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class VariableAssignment { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableDeclaration.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableDeclaration.java new file mode 100644 index 0000000..5bc88f4 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/VariableDeclaration.java @@ -0,0 +1,33 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class VariableDeclaration { + + private String type; + private String name; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/WhileBlock.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/WhileBlock.java new file mode 100644 index 0000000..eaa8167 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/statements/WhileBlock.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.statements; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class WhileBlock { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunction.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunction.java new file mode 100644 index 0000000..0aac312 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunction.java @@ -0,0 +1,32 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.syntax; +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class SharkFunction { + private String name; + + private String body; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunctionArgument.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunctionArgument.java new file mode 100644 index 0000000..54e393c --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/language/syntax/SharkFunctionArgument.java @@ -0,0 +1,34 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.language.syntax; + +import lombok.Data; +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +@Data +public class SharkFunctionArgument { + private String name; + private String type; +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/todo.txt b/power-shark/src/main/java/org/nanoboot/powerframework/shark/todo.txt new file mode 100644 index 0000000..db7fb2a --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/todo.txt @@ -0,0 +1 @@ + //num bignum dec bigdec bool str enum list map set queue stack diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/virtualmachine/VirtualMachine.java b/power-shark/src/main/java/org/nanoboot/powerframework/shark/virtualmachine/VirtualMachine.java new file mode 100644 index 0000000..959e004 --- /dev/null +++ b/power-shark/src/main/java/org/nanoboot/powerframework/shark/virtualmachine/VirtualMachine.java @@ -0,0 +1,31 @@ + +/////////////////////////////////////////////////////////////////////////////////////////////// +// power-framework: Java library with many purposes of usage. +// Copyright (C) 2016-2022 the original author or authors. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; +// version 2.1 of the License only. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +/////////////////////////////////////////////////////////////////////////////////////////////// + +package org.nanoboot.powerframework.shark.virtualmachine; + +/** + * + * + * @author Robert Vokac + * @since 0.0.0 + */ +public class VirtualMachine { + +} diff --git a/power-shark/src/main/java/org/nanoboot/powerframework/shark/virtualmachine/instructions/.gitkeep b/power-shark/src/main/java/org/nanoboot/powerframework/shark/virtualmachine/instructions/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/power-shark/src/main/resources/.gitkeep b/power-shark/src/main/resources/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/power-shark/src/test/java/org/nanoboot/powerframework/shark/.gitkeep b/power-shark/src/test/java/org/nanoboot/powerframework/shark/.gitkeep new file mode 100644 index 0000000..e69de29