Table of Contents

Class Parser

Namespace
flx.SILQ.Core
Assembly
flx.SILQ.dll

Provides utility methods for parsing tokens into expressions and statements in the SILQ language.

public class Parser
Inheritance
Parser
Inherited Members

Methods

ParseExpression(List<Token>)

Parses a list of tokens into an expression AST.

public Expression ParseExpression(List<Token> tokens)

Parameters

tokens List<Token>

The list of tokens to parse.

Returns

Expression

The root flx.SILQ.Core.Parser.Expression() node.

Exceptions

ParserError

Thrown if the token list is empty or parsing fails.

ParseStatements(List<Token>)

Parses a list of tokens into a list of statements.

public List<Statement> ParseStatements(List<Token> tokens)

Parameters

tokens List<Token>

The list of tokens to parse.

Returns

List<Statement>

A list of parsed flx.SILQ.Core.Parser.Statement() objects.