parser

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Types = map[string]ast.VariableType{
	"str":    ast.StringType,
	"i8":     ast.Int8Type,
	"i16":    ast.Int16Type,
	"i32":    ast.Int32Type,
	"i64":    ast.Int64Type,
	"f32":    ast.Float32Type,
	"f64":    ast.Float64Type,
	"bool":   ast.BoolType,
	"list":   ast.ArrayType,
	"tuple":  ast.TupleType,
	"fn":     ast.FunctionType,
	"object": ast.ObjectType,
	"any":    ast.AnyType,
}

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) ProduceAST

func (p *Parser) ProduceAST(sourceCode string) ast.Program

Jump to

Keyboard shortcuts

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