package
Version:
v0.0.0-...-7b712e5
Opens a new window with list of versions in this module.
Published: Mar 3, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FindMacros returns the names of all macros defined by the C source
in r.
Preprocess invokes the C preprocessor to pre-process the C source
in r.
type BuildEnv struct {
CCArgs []string
}
type Enum struct {
Tag Tok
Ident Tok
}
FindEnums finds top-level enumeration constants in toks.
type Extractor struct {
}
Tokenize parses src into C tokens. src must already be
pre-processed.
const (
TokKeyword TokKind = 1 + iota
TokIdent
TokNumber
TokString
TokChar
TokOp
TokEOF
)
type Toks struct {
Toks []Tok
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.