package
Version:
v0.0.0-...-8f4bfd8
Opens a new window with list of versions in this module.
Published: Apr 12, 2016
License: LGPL-3.0, BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FileSet holds positioning information for parsed twik code.
NewFileSet returns a new FileSet.
PosInfo returns the line and column for pos, and the name the
file containing that position was parsed with.
Float represents a float literal in parsed twik code.
Int represents an integer literal in parsed twik code.
type List struct {
LParens Pos
RParens Pos
Nodes []Node
}
List represents a list of entries from parsed twik code.
type Node interface {
Pos() Pos
End() Pos
}
The Node interface is implemented by all AST nodes that result
from parsing twik code.
Parse parses a byte slice containing twik code and returns
the resulting parsed tree.
Positioning information for the parsed code will be stored in
fset under the given name.
ParseString parses a string containing twik code and returns
the resulting parsed tree.
Positioning information for the parsed code will be stored in
fset under the given name.
Pos is a position marker within a file set. Use the FileSet's PosInfo
method to obtain human-oriented details for the position.
PosInfo holds human-oriented positioning details about a Pos.
type Root struct {
First Pos
After Pos
Nodes []Node
}
Root represents the root of parsed twik code.
String represents a string literal in parsed twik code.
type Symbol struct {
Name string
NamePos Pos
}
Symbol represents a symbol in parsed twik code.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.