private bool IsTokenAllowed(string token) { LanguageInstruction languageInstruction; return(AllowedInstructions.TryGetByFirst(token, out languageInstruction)); }
private bool AnyTokenStartsWith(string beginning) { return(AllowedInstructions.Any(i => i.Key.StartsWith(beginning))); }
public IEnumerable <LanguageInstruction> GenerateDIL(string source) { return(GetTokens(source).Select(token => AllowedInstructions.GetByFirst(token))); }