parser

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2019 Marius Ackerman

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(parserDir string, g *ast.Grammar, gs *gslot.GSlot, ff *frstflw.FF)

Types

type AltData

type AltData struct {
	NT         string
	AltLabel   string
	AltComment string
	Empty      bool
	Slots      []*SlotData
}

type Condition

type Condition struct {
	Cond string
	Last bool
}

type Data

type Data struct {
	Package     string
	Imports     []string
	StartSymbol string
	CodeX       string
	TestSelect  string
}

type SlotData

type SlotData struct {
	AltLabel  string
	PreLabel  string
	PostLabel string
	Comment   string
	IsNT      bool
	Head      string
}

type TSData

type TSData struct {
	Label      string
	Conditions []*Condition
}

type TestSelectData

type TestSelectData struct {
	TestSelect []*TSData
	Follow     []*TSData
}

Directories

Path Synopsis
Package symbols generates parser/symbols.go
Package symbols generates parser/symbols.go

Jump to

Keyboard shortcuts

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