diff --git a/src/CommandLineInterface.hx b/src/CommandLineInterface.hx index 3c186b6..5ac9b41 100644 --- a/src/CommandLineInterface.hx +++ b/src/CommandLineInterface.hx @@ -30,6 +30,12 @@ class CommandLineInterface { parser.load_processors_from_resources(); var results = parser.parse(code); + + if (results.length == 0) { + neko.Lib.print("Your code didn't have any tokens in it!"); + neko.Sys.exit(0); + } + var ignored_modules = parser.ignored_modules; var ignored_tokens_in_modules = parser.ignored_tokens_in_modules; diff --git a/src/JavaScriptTarget.hx b/src/JavaScriptTarget.hx index dd09869..129decb 100644 --- a/src/JavaScriptTarget.hx +++ b/src/JavaScriptTarget.hx @@ -94,177 +94,183 @@ class JavaScriptTarget { Display code version information. **/ static public function display_version_information() { - var version_info = new CodeVersionInformation(current_results, ignored_modules, ignored_tokens_in_modules); - - var output = "