List

package
v0.0.0-...-1802cdc Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Artistic-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Expression = compiler.Expression{
	Detect: func(c *compiler.Compiler) compiler.Type {
		if c.Token() == "[" {

			var expression = c.ScanExpression()
			var elements []Type
			elements = append(elements, expression)

			for {
				if c.ScanIf(",") {

					var extra = c.ScanType(expression)
					elements = append(elements, extra)

				} else {
					c.Expecting("]")
					break
				}
			}

			return c.List(elements...)
		}

		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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