共用方式為


Parser Class

Definition

Defines the methods that control the parser behavior.

public ref class Parser : IDisposable
public class Parser : IDisposable
type Parser = class
    interface IDisposable
Public Class Parser
Implements IDisposable
Inheritance
Parser
Implements

Constructors

Parser()

Initializes a new instance of the Parser class.

Methods

Cleanup()

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

DisableVariableSubstitution()

Disables variable substitution in the lexer.

Dispose()

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

Dispose(Boolean)

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

GetLastCommandLineNumber()

Returns the line number of the last encountered command.

Parse()

Starts the parsing.

ParserDispose()

Cleans up the parser state.

SetBatchDelimiter(String)

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

SetBatchSource(IBatchSource)

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

SetCommandExecuter(ICommandExecuter)

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

SetParseMode(ParseMode)

Sets the parser mode.

SetRecognizeOnlyVariables(Boolean)

Sets the parser mode to recognize only variables.

SetVariableResolver(IVariableResolver)

Sets the variable resolver interface.

Applies to