Merge pull request #352 from sifislag/master
Added a CAstNode and a CAstOperator to support some wanted python features.
This commit is contained in:
commit
1c6a6b0cbd
|
@ -113,6 +113,7 @@ public interface CAstNode {
|
||||||
public static final int ECHO = 25;
|
public static final int ECHO = 25;
|
||||||
public static final int YIELD_STMT = 26;
|
public static final int YIELD_STMT = 26;
|
||||||
public static final int FORIN_LOOP = 27;
|
public static final int FORIN_LOOP = 27;
|
||||||
|
public static final int GLOBAL_DECL = 28;
|
||||||
|
|
||||||
// expression kinds
|
// expression kinds
|
||||||
public static final int FUNCTION_EXPR = 100;
|
public static final int FUNCTION_EXPR = 100;
|
||||||
|
|
|
@ -88,6 +88,7 @@ public class CAstOperator implements CAstNode {
|
||||||
public final static CAstOperator OP_BIT_XOR = new CAstOperator("^");
|
public final static CAstOperator OP_BIT_XOR = new CAstOperator("^");
|
||||||
public final static CAstOperator OP_REL_XOR = new CAstOperator("^^");
|
public final static CAstOperator OP_REL_XOR = new CAstOperator("^^");
|
||||||
public final static CAstOperator OP_IN = new CAstOperator("in");
|
public final static CAstOperator OP_IN = new CAstOperator("in");
|
||||||
|
public final static CAstOperator OP_NOT_IN = new CAstOperator("not in");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue