diff options
| Commit | b9243748c11a6391068e6501c96040021572297d (patch) | |
|---|---|---|
| Author | 2020-10-26 22:03:28 +0200 | |
| Committer | 2020-10-26 22:03:28 +0200 | |
| Files | ebc137f076db884fbc37fa9ca904b45c457fdb1e /JSImpl | |
| IPL-b9243748c11a6391068e6501c96040021572297d.tar IPL-b9243748c11a6391068e6501c96040021572297d.tar.gz IPL-b9243748c11a6391068e6501c96040021572297d.zip | ||
| Parent | 6e2c30d863cd10337daeb5d22bb2f51cb8c9c56f (diff) | |
Add example usage of command line
2 files changed, 8 insertions, 0 deletions
| -rw-r--r-- | JSImpl/examples/code.js | 5 | ||||
| -rw-r--r-- | JSImpl/src/main.cpp | 3 |
diff --git a/JSImpl/examples/code.js b/JSImpl/examples/code.js new file mode 100644 index 0000000..72b068b --- /dev/null +++ b/JSImpl/examples/code.js @@ -0,0 +1,5 @@ +var pesho = 2;
+var gosho = 4;
+if (pesho + gosho > 10) {
+ pesho = 5;
+}
\ No newline at end of file diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp index c1cfe64..6ed1122 100644 --- a/JSImpl/src/main.cpp +++ b/JSImpl/src/main.cpp @@ -227,6 +227,9 @@ private: int main(int argc, char* argv[]) { + // You can try => + // Working dir: $(ProjectDir) + // Command arguments: --input ./../examples/code.js --output ./../examples/some.ast --ast CammandLineApp cmd; cmd.RunAsCommandLine(argc, argv); //auto r = Tokenize("a#4", {true ,true}); |
