summaryrefslogtreecommitdiff
path: root/dice-lang/src/bjc/dicelang/Errors.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-08 16:38:35 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-08 16:38:35 -0300
commit054643900e7b857cafe123b0b4c03f10a95520ed (patch)
treec289fc397fe79ea0a6792e3f2f39a05ed1315936 /dice-lang/src/bjc/dicelang/Errors.java
parentf40e5a873420d70d01ff7e01b77bdbd64faab00e (diff)
Update
Diffstat (limited to 'dice-lang/src/bjc/dicelang/Errors.java')
-rw-r--r--dice-lang/src/bjc/dicelang/Errors.java30
1 files changed, 19 insertions, 11 deletions
diff --git a/dice-lang/src/bjc/dicelang/Errors.java b/dice-lang/src/bjc/dicelang/Errors.java
index 31d57b5..255db75 100644
--- a/dice-lang/src/bjc/dicelang/Errors.java
+++ b/dice-lang/src/bjc/dicelang/Errors.java
@@ -3,6 +3,10 @@ package bjc.dicelang;
/**
* Repository for error messages.
*
+ * @TODO 10/08/17 Ben Culkin :ErrorRefactor
+ * This way of handling error messages is not easy to deal with. Something
+ * else needs to be done, but I'm not sure what at the moment.
+ *
* @author EVE
*
*/
@@ -14,7 +18,7 @@ public class Errors {
*
*/
public static enum ErrorKey {
- // Define Errors
+ /* Define Errors */
/**
* Incorrect define guard syntax
*/
@@ -28,7 +32,7 @@ public class Errors {
*/
EK_DFN_RECUR,
- // Console Errors
+ /* Console Errors */
/**
* Unknown console pragma
*/
@@ -38,7 +42,7 @@ public class Errors {
*/
EK_CONS_INVDEFINE,
- // Language Engine Errors
+ /* Language Engine Errors */
/**
* Found closing double-brace w/out opening double-brace
*/
@@ -48,7 +52,7 @@ public class Errors {
*/
EK_ENG_NOCLOSING,
- // Tokenizer Errors
+ /* Tokenizer Errors */
/**
* Found an unexpected grouping token
*/
@@ -62,7 +66,7 @@ public class Errors {
*/
EK_TOK_INVFLEX,
- // Evaluator Errors
+ /* Evaluator Errors */
/**
* Unknown node type
*/
@@ -132,7 +136,7 @@ public class Errors {
*/
EK_EVAL_UNSTRING,
- // Parser Error
+ /* Parser Error */
/**
* Group closing where there couldn't be an opener
*/
@@ -154,7 +158,7 @@ public class Errors {
*/
EK_PARSE_INVTOKEN,
- // Shunter Error
+ /* Shunter Error */
/**
* Unary operator expected a operand, but got an operator
*/
@@ -180,7 +184,7 @@ public class Errors {
*/
EK_SHUNT_NOTASSOC,
- // Stream Errors
+ /* Stream Errors */
/**
* Attempted to switch to a non-existant stream
*/
@@ -194,7 +198,7 @@ public class Errors {
*/
EK_STRM_INVCOM,
- // SCL Errors
+ /* SCL Errors */
/**
* Unknown SCL token
*/
@@ -216,7 +220,7 @@ public class Errors {
*/
EK_SCL_INVARG,
- // CLI Argument Errors
+ /* CLI Argument Errors */
/**
* Unknown CLI argument
*/
@@ -230,7 +234,7 @@ public class Errors {
*/
EK_CLI_INVDFNTYPE,
- // Miscellaneous errors
+ /* Miscellaneous errors */
/**
* Unknown I/O problem
*/
@@ -239,6 +243,10 @@ public class Errors {
* File not found
*/
EK_MISC_NOFILE,
+
+ /* Dice errors. */
+ /* Recieved the wrong sort of expression to a die. */
+ EK_DICE_INVTYPE,
}
/**