Documentation ¶
Index ¶
- Constants
- func MLOGToGolang(input string) (string, error)
- func MLOGToGolangBytes(input []byte) (string, error)
- func MLOGToGolangFile(fileName string) (string, error)
- func RegisterFuncTranslation(name string, translator Translator)
- type Global
- func (g Global) Assert(variable string, variableType string) error
- func (g Global) AssignOrDefine(variable string, variableType string) (token.Token, error)
- func (g Global) Exists(variable string, variableType string) (bool, error)
- func (g Global) GetType(variable string) (string, error)
- func (g Global) Resolve(str string, variableType string) (ast.Expr, error)
- type PreprocessFunc
- type Resolvable
- type TranslateFunc
- type Translator
Constants ¶
View Source
const LabelPrefix = "jumpTo"
Variables ¶
This section is empty.
Functions ¶
func MLOGToGolang ¶
func MLOGToGolangBytes ¶
func MLOGToGolangFile ¶
func RegisterFuncTranslation ¶
func RegisterFuncTranslation(name string, translator Translator)
Types ¶
type Global ¶
type Global struct { Lines []mlog.MLOGLine Labels map[string]*mlog.MLOGLine MappedLines map[int]*mlog.MLOGLine Variables map[string]string }
func (Global) AssignOrDefine ¶
type PreprocessFunc ¶
type Resolvable ¶
type TranslateFunc ¶
type Translator ¶
type Translator struct { Preprocess PreprocessFunc Translate TranslateFunc }
Click to show internal directories.
Click to hide internal directories.