Parser Parser Parser Class

Definition

The parser that parses PowerShell script and returns a ScriptBlockAst, tokens, and error messages if the script cannot be parsed successfully.

public sealed class Parser
type Parser = class
Public NotInheritable Class Parser
Inheritance
ParserParserParser

Methods

ParseFile(String, Token[], ParseError[]) ParseFile(String, Token[], ParseError[]) ParseFile(String, Token[], ParseError[])

Parse input from the specified file.

ParseInput(String, Token[], ParseError[]) ParseInput(String, Token[], ParseError[]) ParseInput(String, Token[], ParseError[])

Parse input that does not come from a file.

ParseInput(String, String, Token[], ParseError[]) ParseInput(String, String, Token[], ParseError[]) ParseInput(String, String, Token[], ParseError[])

Parse input that does not come from a file.

Applies to