From 8c716f747ef640346a52a8b0053a5fddac44c951 Mon Sep 17 00:00:00 2001 From: jrte Date: Wed, 13 Sep 2023 10:49:39 -0300 Subject: [PATCH] Fix broken build - it was the anonymous field token `~` - also fixed related javadoc comment Signed-off-by: jrte --- src/com/characterforming/jrte/engine/Token.java | 2 ++ src/com/characterforming/ribose/IToken.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/characterforming/jrte/engine/Token.java b/src/com/characterforming/jrte/engine/Token.java index b11513f..e7c15b3 100644 --- a/src/com/characterforming/jrte/engine/Token.java +++ b/src/com/characterforming/jrte/engine/Token.java @@ -110,6 +110,8 @@ private static Type type(byte[] token) { } else if (token[0] == IToken.SIGNAL_TYPE) { t = IToken.Type.SIGNAL; } + } else if (token.length == 1 && token[0] == IToken.FIELD_TYPE) { + t = IToken.Type.FIELD; } return t; } diff --git a/src/com/characterforming/ribose/IToken.java b/src/com/characterforming/ribose/IToken.java index 34b115f..53ce7f0 100644 --- a/src/com/characterforming/ribose/IToken.java +++ b/src/com/characterforming/ribose/IToken.java @@ -29,7 +29,7 @@ * To ribose a token may represent a literal or a symbolic reference to a transducer, * field or signal prefixed with a special byte designating the type of the referent * (@, ~ or !, respectively). Literal tokens that require a type prefix, (eg {@code - * out[`!Aliteral`]}) can escape the prefix by doubling it ({@code `!!Aliteral`]}). + * out[`!Aliteral`]}) can escape the prefix by doubling it ({@code out[`!!Aliteral`]}). *

* Arrays of {@code IToken} objects, corresponding to effector parameters, are conveyed * to proxy parameterized instances during effector parameter precompilation. See the