Documentation
¶
Index ¶
- type Repl
- func (r *Repl) Debug()
- func (r *Repl) Errorf(fstr string, args ...any)
- func (r *Repl) Errorfln(fstr string, args ...any)
- func (r *Repl) Errorln(args ...any)
- func (r *Repl) Print(args ...any)
- func (r *Repl) Printf(fstr string, args ...any)
- func (r *Repl) Printfln(fstr string, args ...any)
- func (r *Repl) Println(args ...any)
- func (r *Repl) Reset()
- func (r *Repl) RunStatements(code string)
- type ReplOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repl ¶
type Repl struct {
// contains filtered or unexported fields
}
func NewRepl ¶
func NewRepl(opts ...ReplOption) *Repl
NewRepl creates a Repl struct. It is able to process input source code and eventually run it.
func (*Repl) Debug ¶
func (r *Repl) Debug()
Debug activates the GnoVM debugger for the next evaluation.
func (*Repl) Reset ¶
func (r *Repl) Reset()
Reset will reset the actual repl state, restarting the internal VM.
func (*Repl) RunStatements ¶
type ReplOption ¶
type ReplOption func(*Repl)
func WithStore ¶
func WithStore(s gno.Store) ReplOption
WithStore allows to modify the default Store implementation used by the VM. If nil is provided, the VM will use a default implementation.
Click to show internal directories.
Click to hide internal directories.