Parser Parser Parser Class

Definition

Defines the methods that control the parser behavior.

public ref class Parser : IDisposable
public class Parser : IDisposable
Public Class Parser
Implements IDisposable
Inheritance
ParserParserParser
Implements

Constructors

Parser() Parser() Parser()

Initializes a new instance of the Parser class.

Methods

Cleanup() Cleanup() Cleanup()

Cleans up the internal state, and prepares for a new parse.

DisableVariableSubstitution() DisableVariableSubstitution() DisableVariableSubstitution()

Disables variable substitution in the lexer.

Dispose() Dispose() Dispose()

Releases all resources used by the current instance of the Parser.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases all resources used by the current instance of the Parser.

GetLastCommandLineNumber() GetLastCommandLineNumber() GetLastCommandLineNumber()

Returns the line number of the last encountered command.

Parse() Parse() Parse()

Starts the parsing.

ParserDispose() ParserDispose() ParserDispose()

Cleans up the parser state.

SetBatchDelimiter(String) SetBatchDelimiter(String) SetBatchDelimiter(String)

Sets the new batch delimiter. By default, the batch delimiter is GO.

SetBatchSource(IBatchSource) SetBatchSource(IBatchSource) SetBatchSource(IBatchSource)

Sets the batch source interface, which is used to feed text into the parser.

SetCommandExecuter(ICommandExecuter) SetCommandExecuter(ICommandExecuter) SetCommandExecuter(ICommandExecuter)

Sets the command executer interface, which processes sqlcmd commands and the batch delimiter.

SetParseMode(ParseMode) SetParseMode(ParseMode) SetParseMode(ParseMode)

Sets the parser mode.

SetRecognizeOnlyVariables(Boolean) SetRecognizeOnlyVariables(Boolean) SetRecognizeOnlyVariables(Boolean)

Sets the parser mode to recognize only variables.

SetVariableResolver(IVariableResolver) SetVariableResolver(IVariableResolver) SetVariableResolver(IVariableResolver)

Sets the variable resolver interface.

Applies to