parser

package
v0.0.0-...-169fbab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README

ReCT Parser

I decided to give each statement and expression its own class / type like how I did back in C# ReCT.
If this is a stupid idea, please just feel free to punch me!
- RedCube

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(tokens []lexer.Token) []nodes.MemberNode

Parse parse a compilation (with all its functions, classes, enums, global statements, etc...)

Types

type Parser

type Parser struct {
	Tokens []lexer.Token
	Index  int
}

Parser : internal struct for assembling the syntax tree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL