canEncode static method
Tests whether the given string can be represented as a literal string.
The string must only contain characters matched by charParser.
Implementation
static bool canEncode(String str) => charParser.star().end().accept(str);
Tests whether the given string can be represented as a literal string.
The string must only contain characters matched by charParser.
static bool canEncode(String str) => charParser.star().end().accept(str);