-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MiniScript: Transpilation: some improvements
- Loading branch information
Showing
16 changed files
with
1,119 additions
and
966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\advanced-test.tscript src\tdme\tests\MiniScriptAdvancedTest.cpp | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\base-test.tscript src\tdme\tests\MiniScriptBaseTest.cpp | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\class-test.tscript src\tdme\tests\MiniScriptClassTest.cpp | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\emit-test.tscript src\tdme\tests\MiniScriptEmitTest.cpp | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\functions-test.tscript src\tdme\tests\MiniScriptFunctionsTest.cpp | ||
.\bin\tdme\tools\cli\miniscripttranspiler resources\tests\scripts\functions-test.tscript src\tdme\tests\MiniScriptFunctionsTest.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/advanced-test.tscript src/tdme/tests/MiniScriptAdvancedTest.cpp | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/base-test.tscript src/tdme/tests/MiniScriptBaseTest.cpp | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/class-test.tscript src/tdme/tests/MiniScriptClassTest.cpp | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/emit-test.tscript src/tdme/tests/MiniScriptEmitTest.cpp | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/functions-test.tscript src/tdme/tests/MiniScriptFunctionsTest.cpp | ||
./bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/functions-test.tscript src/tdme/tests/MiniScriptFunctionsTest.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.\bin\tdme\tools\cli\miniscriptuntranspiler resources\tests\scripts\advanced-test.tscript src\tdme\tests\MiniScriptAdvancedTest.cpp | ||
.\bin\tdme\tools\cli\miniscriptuntranspiler resources\tests\scripts\base-test.tscript src\tdme\tests\MiniScriptBaseTest.cpp | ||
.\bin\tdme\tools\cli\miniscriptuntranspiler resources\tests\scripts\class-test.tscript src\tdme\tests\MiniScriptClassTest.cpp | ||
.\bin\tdme\tools\cli\miniscriptuntranspiler resources\tests\scripts\emit-test.tscript src\tdme\tests\MiniScriptEmitTest.cpp | ||
.\bin\tdme\tools\cli\miniscriptuntranspiler resources\tests\scripts\functions-test.tscript src\tdme\tests\MiniScriptFunctionsTest.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
./bin/tdme/tools/cli/miniscriptuntranspiler resources/tests/scripts/advanced-test.tscript src/tdme/tests/MiniScriptAdvancedTest.cpp | ||
./bin/tdme/tools/cli/miniscriptuntranspiler resources/tests/scripts/base-test.tscript src/tdme/tests/MiniScriptBaseTest.cpp | ||
./bin/tdme/tools/cli/miniscriptuntranspiler resources/tests/scripts/class-test.tscript src/tdme/tests/MiniScriptClassTest.cpp | ||
./bin/tdme/tools/cli/miniscriptuntranspiler resources/tests/scripts/emit-test.tscript src/tdme/tests/MiniScriptEmitTest.cpp | ||
./bin/tdme/tools/cli/miniscriptuntranspiler resources/tests/scripts/functions-test.tscript src/tdme/tests/MiniScriptFunctionsTest.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "MiniScriptClassTest.h" | ||
|
||
#include <tdme/tdme.h> | ||
#include <tdme/utilities/Console.h> | ||
#include <tdme/utilities/MiniScript.h> | ||
#include <tdme/utilities/MiniScriptMath.h> | ||
|
||
using tdme::utilities::Console; | ||
using tdme::utilities::MiniScript; | ||
using tdme::utilities::MiniScriptMath; | ||
|
||
MiniScriptClassTest::MiniScriptClassTest(): MiniScript() { | ||
initializeNative(); | ||
} | ||
|
||
/*__MINISCRIPT_TRANSPILEDMINISCRIPTCODE_DEFINITIONS_START__*/ | ||
/*__MINISCRIPT_TRANSPILEDMINISCRIPTCODE_DEFINITIONS_END__*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <tdme/tdme.h> | ||
#include <tdme/utilities/Console.h> | ||
#include <tdme/utilities/MiniScript.h> | ||
|
||
using tdme::utilities::Console; | ||
using tdme::utilities::MiniScript; | ||
|
||
/** | ||
* Transpile with './bin/tdme/tools/cli/miniscripttranspiler resources/tests/scripts/class-test.tscript src/tdme/tests/MiniScriptClassTest.cpp' | ||
*/ | ||
class MiniScriptClassTest: public MiniScript { | ||
public: | ||
// forbid class copy | ||
FORBID_CLASS_COPY(MiniScriptClassTest) | ||
|
||
/** | ||
* Public constructor | ||
*/ | ||
MiniScriptClassTest(); | ||
|
||
/*__MINISCRIPT_TRANSPILEDMINISCRIPTCODE_DECLARATIONS_START__*/ | ||
/*__MINISCRIPT_TRANSPILEDMINISCRIPTCODE_DECLARATIONS_END__*/ | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.