Documentation ¶
Index ¶
- func DoCli(p PluginBase)
- type Config
- type Language
- func (lang Language) Eval(code string)
- func (lang Language) EvalAndTryToPrint(code string)
- func (lang Language) EvalFile(file string, args []string) int
- func (lang Language) InternalREPL()
- func (lang Language) REPL()
- func (lang Language) REPLLikeEval(code string)
- func (lang Language) SetPrompts(ps1, ps2 string)
- func (lang Language) Version() string
- type PluginBase
- type PluginEval
- type PluginEvalExpression
- type PluginEvalFile
- type PluginREPL
- type PluginREPLLikeEval
- type PluginSetPrompts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoCli ¶
func DoCli(p PluginBase)
Types ¶
type Config ¶
type Config struct { Code string Quiet bool Exp string Ps1, Ps2 string Args []string Interactive, OurInteractive bool }
func ParseFlags ¶
func ParseFlags() *Config
type Language ¶
type Language struct {
// contains filtered or unexported fields
}
func (Language) EvalAndTryToPrint ¶
func (Language) InternalREPL ¶
func (lang Language) InternalREPL()
func (Language) REPLLikeEval ¶
func (Language) SetPrompts ¶
type PluginBase ¶
type PluginBase interface { Open() Close() Version() string }
type PluginEval ¶
type PluginEval interface { PluginBase Eval(code string) }
type PluginEvalExpression ¶
type PluginEvalExpression interface { PluginBase EvalExpression(code string) string }
type PluginEvalFile ¶
type PluginEvalFile interface { PluginBase EvalFile(file string, args []string) int }
type PluginREPL ¶
type PluginREPL interface { PluginBase REPL() }
type PluginREPLLikeEval ¶
type PluginREPLLikeEval interface { PluginBase REPLLikeEval(code string) }
type PluginSetPrompts ¶
type PluginSetPrompts interface { PluginBase SetPrompts(ps1, ps2 string) }
Click to show internal directories.
Click to hide internal directories.