In the Arcaflow tokenizer, the pattern for BooleanLiteralToken is incorrect: since anchoring (^/$) is higher precedence than alternation (|), we need to explicitly group the alternation so that the anchoring applies to both alternates (which is why lines 110 and 112 contain groupings). As the code stands at the moment, it will match a string which begins with true or ends with false, since each alternation uses separate anchoring.
In the Arcaflow tokenizer, the pattern for
BooleanLiteralToken
is incorrect: since anchoring (^
/$
) is higher precedence than alternation (|
), we need to explicitly group the alternation so that the anchoring applies to both alternates (which is why lines 110 and 112 contain groupings). As the code stands at the moment, it will match a string which begins withtrue
or ends withfalse
, since each alternation uses separate anchoring.