Show / Hide Table of Contents

Class Parser

Consumes SyntaxToken from Lexer to create an abstract syntax tree of SyntaxNode.

Inheritance
System.Object
Parser
Namespace: DotLang.CodeAnalysis.Syntax
Assembly: DotLang.dll
Syntax
public sealed class Parser

Constructors

| Improve this Doc View Source

Parser(Lexer)

Declaration
public Parser(Lexer lexer)
Parameters
Type Name Description
Lexer lexer
| Improve this Doc View Source

Parser(SourceText)

Declaration
public Parser(SourceText sourceText)
Parameters
Type Name Description
SourceText sourceText
| Improve this Doc View Source

Parser(String)

Declaration
public Parser(string sourceText)
Parameters
Type Name Description
System.String sourceText

Methods

| Improve this Doc View Source

Parse()

Declaration
public SyntaxTree Parse()
Returns
Type Description
SyntaxTree
  • Improve this Doc
  • View Source
Back to top Generated by DocFX