Read

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{
	Name: Name,

	OnScan: func(c *compiler.Compiler) compiler.Type {
		c.Expecting("(")

		if c.ScanIf(")") {
			return c.Read(c.Rune('\n'))
		}

		var argument = c.ScanExpression()
		c.Expecting(")")

		switch argument.(type) {
		case Rune:

			return c.Read(argument)

		default:
			c.Unimplemented()

		}

		return nil
	},
}
View Source
var Name = compiler.Translatable{
	compiler.English: "read",
	compiler.Maori:   "rīti",
}

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