public void Parse(string text) { var scanner = new TSqlScanner(text); _parser = new TSqlParser(scanner); _expr = _parser.ParseExpression(); }
public void ParseAll(string text) { var scanner = new TSqlScanner(text); _parser = new TSqlParser(scanner); _exprList = _parser.ParseProgram().ToList(); }
public void inserted_id() { var sql = @"inserted.id"; var scanner = new TSqlScanner(sql); var parser = new TSqlParser(scanner); var expr = parser.ParseMeetObjectId(); new ObjectIdSqlCodeExpr() { RemoteServer = string.Empty, DatabaseName = string.Empty, SchemaName = "inserted", ObjectName = "id" }.ToExpectedObject().ShouldEqual(expr); }