ast

package
v0.0.0-...-d977049 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ast generates the AST for Rust LR(1) parsers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(pkg string, bprods []*basicprod.Production)

Types

type BasicProd

type BasicProd struct {
	Comment    string
	ID         string
	Params     []*Param
	ReturnType string
}

type Data

type Data struct {
	Package    string
	Types      []string
	BasicProds []*BasicProd
}

type Param

type Param struct {
	ID   string
	Type string
}

Jump to

Keyboard shortcuts

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