add initial doc.sh script

This commit is contained in:
John Bintz 2008-10-11 16:09:46 -04:00
parent 09215aaeea
commit 4b1fb36789
3 changed files with 41 additions and 26 deletions

6
build/doc.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ ! -e ../doc ]; then mkdir ../doc; fi
haxe -cp ../src -xml ../doc/harmoniouscode.xml CommandLineInterface JavaScriptTarget
cd ../doc
haxedoc harmoniouscode.xml

View File

@ -1,3 +1,7 @@
/**
CodeParser parses a block of PHP code and returns information on the
tokens it finds.
**/
class CodeParser {
public var token_processors(get_token_processors, null) : Hash<TokenProcessor>;
public var ignored_modules(get_ignored_modules, null) : Hash<Bool>;
@ -8,6 +12,9 @@ class CodeParser {
}
#if neko
/**
Load all possible token processors from disk.
**/
public function loadProcessorsFromDisk() {
var functionProcessor = new FunctionTokenProcessor();
if (!functionProcessor.load_from_cache()) {

View File

@ -1,4 +1,5 @@
class CommandLineInterface {
#if neko
static public function main() {
var arguments = neko.Sys.args();
@ -38,4 +39,5 @@ class CommandLineInterface {
}
}
}
#end
}