Ejemplo n.º 1
0
        public void AdvanceThroughBalancedParentheticalExpressionWorks()
        {
            ExpressionLexer lexer = new ExpressionLexer("(expression)next", moveToFirstToken: true, useSemicolonDelimeter: true, parsingFunctionParameters: false);
            string result = lexer.AdvanceThroughBalancedParentheticalExpression();
            result.Should().Be("(expression)");
            // TODO: the state of the lexer is weird right now, see note in AdvanceThroughBalancedParentheticalExpression.

            lexer.NextToken().Text.Should().Be("next");
        }