示例#1
0
        private bool IsTokenAllowed(string token)
        {
            LanguageInstruction languageInstruction;

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