add initial doc.sh script
This commit is contained in:
parent
09215aaeea
commit
4b1fb36789
6
build/doc.sh
Executable file
6
build/doc.sh
Executable 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
|
@ -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()) {
|
||||
|
@ -1,4 +1,5 @@
|
||||
class CommandLineInterface {
|
||||
#if neko
|
||||
static public function main() {
|
||||
var arguments = neko.Sys.args();
|
||||
|
||||
@ -38,4 +39,5 @@ class CommandLineInterface {
|
||||
}
|
||||
}
|
||||
}
|
||||
#end
|
||||
}
|
Loading…
Reference in New Issue
Block a user