validate method
Signals the caller if the token type is compatible with the next and previous tokens.
Implementation
bool validate(ComputeContext ctx, Token? previousToken,
String rawBuildingToken, Token? nextToken) {
return validatePrevious(ctx, rawBuildingToken, previousToken) &&
validateNext(ctx, rawBuildingToken, nextToken);
}