From bfa3d8518d8c13d2bea7f7ae1fcc6982ffecdf0d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 21 Oct 2008 06:29:45 -0400 Subject: [PATCH] embed token data into command line tool --- build/command_line.hxml | 3 ++- src/CommandLineInterface.hx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/command_line.hxml b/build/command_line.hxml index 43fd736..7ef743e 100644 --- a/build/command_line.hxml +++ b/build/command_line.hxml @@ -1,3 +1,4 @@ -main CommandLineInterface -neko ../neko/codeparser.n --cp ../src \ No newline at end of file +-cp ../src +-resource ../data/all_tokens.hxd \ No newline at end of file diff --git a/src/CommandLineInterface.hx b/src/CommandLineInterface.hx index 673c0b7..43f5464 100644 --- a/src/CommandLineInterface.hx +++ b/src/CommandLineInterface.hx @@ -27,7 +27,7 @@ class CommandLineInterface { var code = neko.io.File.getContent(filepath); var parser = new CodeParser(); - parser.load_all_processors_from_disk(); + parser.load_processors_from_resources(); var results = parser.parse(code);