Write

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 Statement = compiler.Statement{
	Name: compiler.Translatable{
		compiler.English: "write",
	},

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

		//Deal with the first argument.
		var Arguments = []Type{
			c.ScanExpression().Value().String(),
		}

		for {
			if c.Peek() == "," {
				c.Scan()
				Arguments = append(Arguments, c.ScanExpression().Value().String())
			} else {
				c.Expecting(")")
				break
			}
		}

		c.Write(Arguments...)
	},
}

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