public static TokenJar Lex(string data, LexOptions opt) { var endToken = new Token(null, TokenType.EndOfFile, data.Length, data.Length); return(new TokenJar(preprocess(lex(data)).Where(t => ((t.Type != TokenType.CommentSlashSlash && t.Type != TokenType.CommentSlashStar) || (opt & LexOptions.IgnoreComments) == 0)), endToken)); }
public AWSLexService(AmazonLexClient awsLexClient, ILogger <AWSLexService> logger, IOptions <LexOptions> lexOptions) { _awsLexClient = awsLexClient; _logger = logger; _lexOptions = lexOptions.Value; }