parser

package
v0.0.0-...-4926b86 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Embeds strings.Builder
	Uses   []*use
	Defs   *defmap

	BlockVars []ast.Var
	Errs      []jnlog.CompilerLog
	Warns     []jnlog.CompilerLog
	File      *jnio.File
	// contains filtered or unexported fields
}

func New

func New(f *jnio.File) *Parser

func Parset

func Parset(tree []ast.Obj, main, justDefs bool) *Parser

func (*Parser) Comment

func (p *Parser) Comment(c ast.Comment)

func (*Parser) Cxx

func (p *Parser) Cxx() string

func (*Parser) CxxEmbeds

func (p *Parser) CxxEmbeds() string

func (*Parser) CxxFuncs

func (p *Parser) CxxFuncs() string

func (*Parser) CxxGlobals

func (p *Parser) CxxGlobals() string

func (*Parser) CxxPrototypes

func (p *Parser) CxxPrototypes() string

func (*Parser) Func

func (p *Parser) Func(fast ast.Func)

func (*Parser) FuncById

func (p *Parser) FuncById(id string) *function

func (*Parser) Global

func (p *Parser) Global(vast ast.Var)

func (*Parser) Parse

func (p *Parser) Parse(tokens []lexer.Token, main, justDefs bool)

func (*Parser) Parsef

func (p *Parser) Parsef(main, justDefs bool)

func (*Parser) Parset

func (p *Parser) Parset(tree []ast.Obj, main, justDefs bool)

func (*Parser) PushAttribute

func (p *Parser) PushAttribute(attribute ast.Attribute)

func (*Parser) Statement

func (p *Parser) Statement(s ast.Statement)

func (*Parser) Type

func (p *Parser) Type(t ast.Type)

func (*Parser) Var

func (p *Parser) Var(vast ast.Var) ast.Var

func (*Parser) WaitingGlobals

func (p *Parser) WaitingGlobals()

Jump to

Keyboard shortcuts

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