Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewliteralFieldSet ¶
func NewliteralFieldSet(a ...LiteralField) literalFieldSet
NewliteralFieldSet creates and returns a reference to an empty set.
Types ¶
type FodderElement ¶
type FodderElement struct { Kind FodderKind Data string }
type FodderKind ¶
type FodderKind int
--------------------------------------------------------------------------- Fodder
Fodder is stuff that is usually thrown away by lexers/preprocessors but is kept so that the source can be round tripped with full fidelity.
const ( FodderWhitespace FodderKind = iota FodderCommentC FodderCommentCpp FodderCommentHash )
type StaticError ¶
type StaticError struct { Loc ast.LocationRange Msg string }
StaticError represents an error during parsing/lexing or static analysis. TODO(sbarzowski) Make it possible to have multiple static errors and warnings
func MakeStaticError ¶
func MakeStaticError(msg string, lr ast.LocationRange) StaticError
func MakeStaticErrorMsg ¶
func MakeStaticErrorMsg(msg string) StaticError
func (StaticError) Error ¶
func (err StaticError) Error() string
Click to show internal directories.
Click to hide internal directories.