parser

package
v0.0.0-...-ce10fc9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Name  string  `@Ident`
	Props []*Prop `"(" @@ ( "," @@ )* ")"`
}

@Ident "(" Prop ( "," Prop )* ")"

type Object

type Object struct {
	Name string `@Ident`
	Prop *Prop  `( "/" @@ )*`
}

@Ident | @Ident "/" Prop

type Prop

type Prop struct {
	Group  *Group  `@@`
	Object *Object `| @@`
}

Object | Group

type Result

type Result struct {
	Props []*Prop `@@ ( "," @@ )*`
}

func Parse

func Parse(v string) (*Result, error)

Jump to

Keyboard shortcuts

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