Readme typo fix

This commit is contained in:
Gama11
2014-07-29 20:54:34 +02:00
parent dc889bdef1
commit 5811ba4e73
+2 -2
View File
@@ -13,7 +13,7 @@ var interp = new hscript.Interp();
trace(interp.execute(ast));
</pre>
In case of parse error an `hscript.Expr.Error` is throwed. You can use `parser.line` to know the line number.
In case of a parsing error an `hscript.Expr.Error` is thrown. You can use `parser.line` to know the line number.
You can set some globaly accessible identifiers by using `interp.variables.set("name",value)`
@@ -30,4 +30,4 @@ You can use `parser.allowJSON` to allow JSON data.
You can use `parser.allowTypes` to parse types for local vars, exceptions, function args and return types. Types are ignored by the interpreter.
You can use `new hscript.Macro(pos).convert(ast)` to convert an hscript AST to a Haxe macros one.
You can use `new hscript.Macro(pos).convert(ast)` to convert an hscript AST to a Haxe macros one.