parser

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package parser builds the syntax tree of a Kukel source file (syntax.ebnf, sections 1-3) by recursive descent. It reports the first syntax error and stops. Semantic rules (the "Rule:" comments of the grammar) are checked later, by the compiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExpr

func ParseExpr(src string) (x ast.Expr, err error)

ParseExpr parses a single expression (used by tests and tools).

func ParseFile

func ParseFile(name string, src []byte) (f *ast.File, err error)

ParseFile parses one source file.

func ParseStmts added in v0.7.0

func ParseStmts(name string, src []byte) (stmts []ast.Stmt, err error)

ParseStmts parses a sequence of statements (what kukel repl reads).

Types

This section is empty.

Jump to

Keyboard shortcuts

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