Documentation
¶
Index ¶
- Constants
- func ExtractFuncName(code string) string
- func ExtractTypeName(code string) string
- func IsFuncDecl(code string) bool
- func ShouldContinue(code string) (int, bool)
- func StringOf(s map[string]string) string
- type ImportData
- type ImportDatas
- type Interpreter
- type REPLCmd
- type Type
- type Var
- type Vars
Constants ¶
View Source
const ( REPLCmdDoc = REPLCmd(iota) REPLCmdHelp REPLCmdTypeVal REPLCmdPop REPLCmdDump REPLCmdFile REPLCmdVars REPLCmdImports REPLCmdTypes REPLCmdFuncs REPLCmdExit )
View Source
const ( Import = Type(iota) TypeDecl FuncDecl VarDecl Shell Print Unknown Expr Stmt Empty )
Variables ¶
This section is empty.
Functions ¶
func ExtractFuncName ¶
func ExtractTypeName ¶
func IsFuncDecl ¶
func ShouldContinue ¶
Types ¶
type ImportData ¶
func ExtractImportData ¶
func ExtractImportData(im string) []ImportData
func (ImportData) String ¶
func (i ImportData) String() string
type ImportDatas ¶
type ImportDatas []ImportData
func (ImportDatas) AsDump ¶
func (is ImportDatas) AsDump() string
func (ImportDatas) String ¶
func (is ImportDatas) String() string
type Interpreter ¶
func NewSession ¶
func NewSession(workingDirectory string) (*Interpreter, error)
func (*Interpreter) String ¶
func (s *Interpreter) String() string
Click to show internal directories.
Click to hide internal directories.