grammar

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Document = op.Capture{
		Name: "Document",
		Value: op.ZeroOrMore{Value: op.And{
			op.Optional{Value: op.Or{Statement, nt.Comment}},
			nt.OWhitespace, op.EndOfLine{},
		}},
	}
	Statement = op.Capture{
		Name: "Statement",
		Value: op.And{
			nt.OWhitespace,
			nts.Subject, nt.OWhitespace,
			nt.Predicate, nt.OWhitespace,
			nts.Object, nt.OWhitespace,
			op.Optional{Value: op.And{
				nq.GraphLabel, nt.OWhitespace,
			}},
			'.', op.Optional{Value: nt.Comment},
		},
	}
)

Functions

func NewParser

func NewParser(input []rune) (*parser.Parser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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