Merge pull request #352 from sifislag/master

Added a CAstNode and a CAstOperator to support some wanted python features.
This commit is contained in:
Julian Dolby 2018-09-12 15:55:57 -04:00 committed by GitHub
commit 1c6a6b0cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ public interface CAstNode {
public static final int ECHO = 25;
public static final int YIELD_STMT = 26;
public static final int FORIN_LOOP = 27;
public static final int GLOBAL_DECL = 28;
// expression kinds
public static final int FUNCTION_EXPR = 100;

View File

@ -88,6 +88,7 @@ public class CAstOperator implements CAstNode {
public final static CAstOperator OP_BIT_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_NOT_IN = new CAstOperator("not in");
}