diff options
| author | student <student@localhost> | 2018-04-18 16:08:35 -0400 |
|---|---|---|
| committer | student <student@localhost> | 2018-04-18 16:08:35 -0400 |
| commit | cd7d50ec5a4effb37816595c881a1cd05223cc58 (patch) | |
| tree | 8ca16fbbac2202817e06759d148af1bb0a44335f | |
| parent | 476a823a0d2d1c92b8a35d21406f7cf6a4c54d0d (diff) | |
Resolve warnings
| -rw-r--r-- | JPratt/src/examples/java/bjc/pratt/examples/lang/ast/LangAST.java | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/JPratt/src/examples/java/bjc/pratt/examples/lang/ast/LangAST.java b/JPratt/src/examples/java/bjc/pratt/examples/lang/ast/LangAST.java index 7d35b61..3c6030e 100644 --- a/JPratt/src/examples/java/bjc/pratt/examples/lang/ast/LangAST.java +++ b/JPratt/src/examples/java/bjc/pratt/examples/lang/ast/LangAST.java @@ -12,16 +12,32 @@ import bjc.utils.data.TopDownTransformResult; * */ public abstract class LangAST { + /** + * The possible type of the AST nodes. + * + * @author student + * + */ public static enum ASTType { - LITERAL, OPERATOR + /** + * An AST literal + */ + LITERAL, + /** + * An AST operator + */ + OPERATOR } - + + /** + * The type of the node. + */ public final ASTType type; - + protected LangAST(ASTType typ) { type = typ; } - + /** * Evaluate the AST. * @@ -45,7 +61,7 @@ public abstract class LangAST { case "(literal)": return LiteralAST.fromToken(token.getValue()); default: - String msg = String.format("Unknown token type '%s'", key); + // String msg = String.format("Unknown token type '%s'", key); return new StringAST("RAW: " + token.toString()); } |
