diff options
author | 2015-11-06 12:16:03 +0000 | |
---|---|---|
committer | 2015-11-06 16:40:00 +0000 | |
commit | 0ec13b9f03417142ca63b9fe1eb85827d6308233 (patch) | |
tree | 5350445840d49888fcebc98a28d6b9182d71c85a /src/test/java/com/google/devtools | |
parent | 976f1b657bb45c5cb58d48327ce05babe9cd4cdf (diff) |
Add initial Skylark byte code generation code.
Does not yet contain any implementation for expressions and statements
but sets up various needed mechanisms and helper classes.
--
MOS_MIGRATED_REVID=107222845
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/SkylarkShell.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkShell.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkShell.java index 72635cb86b..364db10fa1 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkShell.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkShell.java @@ -81,6 +81,11 @@ class SkylarkShell { } public static void main(String[] args) { + if (args.length > 0 && args[0].equals("--compiler-debug")) { + UserDefinedFunction.enableCompiler = true; + UserDefinedFunction.debugCompiler = true; + UserDefinedFunction.debugCompilerPrintByteCode = true; + } new SkylarkShell().readEvalPrintLoop(); } } |