Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01f3030473 | ||
|
|
98c08becd6 |
+1
-1
@@ -3,7 +3,7 @@
|
||||
"url": "https://github.com/HaxeFoundation/hscript",
|
||||
"license": "MIT",
|
||||
"description": "Haxe Script is a scripting engine for a subset of the Haxe language",
|
||||
"version": "2.0.6",
|
||||
"version": "2.0.7",
|
||||
"releasenote": "fixes for haxe 3.3, use property access by default",
|
||||
"contributors": ["ncannasse"]
|
||||
}
|
||||
@@ -130,6 +130,9 @@ class Bytes {
|
||||
}
|
||||
|
||||
function doEncode( e : Expr ) {
|
||||
#if hscriptPos
|
||||
var e = e.e;
|
||||
#end
|
||||
bout.addByte(Type.enumIndex(e));
|
||||
switch( e ) {
|
||||
case EConst(c):
|
||||
@@ -234,6 +237,11 @@ class Bytes {
|
||||
}
|
||||
|
||||
function doDecode() : Expr {
|
||||
#if hscriptPos
|
||||
return { e : _doDecode(), pmin : 0, pmax : 0 };
|
||||
}
|
||||
function _doDecode() : ExprDef {
|
||||
#end
|
||||
return switch( bin.get(pin++) ) {
|
||||
case 0:
|
||||
EConst( doDecodeConst() );
|
||||
|
||||
@@ -738,7 +738,11 @@ class Parser {
|
||||
case TOp(op):
|
||||
if( op == ">" ) break;
|
||||
if( op.charCodeAt(0) == ">".code ) {
|
||||
#if hscriptPos
|
||||
tokens.add({ t : TOp(op.substr(1)), min : tokenMax - op.length - 1, max : tokenMax });
|
||||
#else
|
||||
tokens.add(TOp(op.substr(1)));
|
||||
#end
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user