b5

package module
v0.0.0-...-668c4b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 8 Imported by: 0

README

b5

A BASIC-like interpreter written in Go. The namesake takes b is from BASIC and 5 from (literally "go" in Japanese).

Usage

b5 can be run in shell mode or in file interpreting mode. By default, b5 runs in shell mode, but if you want to run b5 shell mode you simply need to specify a file as a commandline argument.

Features

b5 is still in its early stages, but to check out some capabilities, you can check out the examples directory.

Example Link Desc
Hello, World! hello_world.b5 Simple "Hello, World!" program.
Variables variables.b5 Simple variable usage.
If statements if_statements.b5 If statement control flow examples.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program interface {
	Exec() error
}

type ShellProgram

type ShellProgram struct{}

func (ShellProgram) Exec

func (s ShellProgram) Exec() error

type StdProgram

type StdProgram struct {
	File string
}

func (StdProgram) Exec

func (s StdProgram) Exec() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL