Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ConditionGuiStarted = newCondition("guiStarted")
ConditionGuiStarted is a condition variable for waiting/announcing that a window has been opened and therefore the GUI subsystem has been ramped up.
Wait for this condition with `ConditionGuiStarted.Wait()` and announce it with `ConditionGuiStarted.Broadcast()`.
var Configuration *koanf.Koanf
Configuration holds global configuration values. We use koanf.
var SignalContext context.Context
SignalContext is a global context for terminating the application by an interrupt signal.
var Tracefile io.WriteCloser
Tracefile is the file we write our log output, if not nil.
Functions ¶
Types ¶
type Numeric ¶
type Numeric polyn.Polynomial
Numeric is a known or unknown scalar value.
func (Numeric) Polynomial ¶
func (n Numeric) Polynomial() polyn.Polynomial
Polynomial is a type-cast to type Polynomial.
type Pair ¶
type Pair struct {
// contains filtered or unexported fields
}
Pair is a known or unknown pair value.
type TokenOperator ¶
type TokenOperator struct {
// contains filtered or unexported fields
}
func NewTokenOperator ¶
func NewTokenOperator(t gorgo.Token) TokenOperator
func (TokenOperator) Call ¶
func (top TokenOperator) Call(e terex.Element, env *terex.Environment) terex.Element
Call delegates the operator call to a symbol in the environment. The symbol is searched for with the literal value of the operator.
func (TokenOperator) Opname ¶
func (top TokenOperator) Opname() string
func (TokenOperator) String ¶
func (top TokenOperator) String() string
func (TokenOperator) Token ¶
func (top TokenOperator) Token() gorgo.Token
type Value ¶
type Value interface { Self() ValueBase // helper indirection, see type ValueBase IsKnown() bool // is this a known value ? Type() ValueType // type of the value }
Value is an interface for all values which PMMP can handle.
type ValueBase ¶
type ValueBase struct {
V Value
}
ValueBase is a helper struct for operations on values.
func (ValueBase) AsNumeric ¶
AsNumeric returns a value a Numeric, or an error and an invalid Numeric.
Directories ¶
Path | Synopsis |
---|---|
Package corelang implements core commands for DSLs dealing with arithmetic expressions, pairs and paths.
|
Package corelang implements core commands for DSLs dealing with arithmetic expressions, pairs and paths. |
Package pmmp is a poor man's version of MetaFont/MetaPost.
|
Package pmmp is a poor man's version of MetaFont/MetaPost. |
cli
Package cli implements the pmmp command line interface.
|
Package cli implements the pmmp command line interface. |
ui/termui
Package termui provides objects and methods for interactive UI in terminal windows.
|
Package termui provides objects and methods for interactive UI in terminal windows. |
Package variables implements variables for programming languages similar to those in MetaFont and MetaPost.
|
Package variables implements variables for programming languages similar to those in MetaFont and MetaPost. |
varparse
Package varparse implements functions to create variable declarations and references from syntax trees.
|
Package varparse implements functions to create variable declarations and references from syntax trees. |