interpret

package
v0.0.0-...-d4b45ed Latest Latest
Warning

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

Go to latest
Published: May 3, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Look rune

Look is a Lookahead character

View Source
var Table map[string]int

Table is used to store variables

Functions

func Abort

func Abort(s string)

Abort Reports Error and Halts

func Assignment

func Assignment()

Assignment Parses and Translates an Assignment Statement

func Emit

func Emit(s string)

Emit Ouputs a String with Tab

func EmitLn

func EmitLn(s string)

EmitLn Ouputs a String with Tab and CRLF

func Error

func Error(s string)

Error Reports an Error

func Expected

func Expected(s string)

Expected Reports What Was Expected

func Expression

func Expression() (value int)

Expression Parses and Translates a Math Expression

func Factor

func Factor() (value int)

Factor Parses and Translates a Math Factor

func GetChar

func GetChar()

GetChar Reads New Character From Input Stream

func GetName

func GetName() (token string)

GetName Gets an Identifier

func GetNum

func GetNum() (value int)

GetNum Gets a Number

func Go

func Go()

Go starts the execution of this chapter

func Init

func Init()

Init Initializes

func InitTable

func InitTable()

InitTable Initializes the Table of variables

func Input

func Input()

Input Inputs Routine

func IsAddOp

func IsAddOp(r rune) bool

IsAddOp Recognizes an AddOp

func IsAlNum

func IsAlNum(r rune) bool

IsAlNum Recognizes an Alphanumeric

func IsAlpha

func IsAlpha(r rune) bool

IsAlpha Recognizes an Alpha Character

func IsDigit

func IsDigit(r rune) bool

IsDigit Recognizes a Decimal Digit

func IsWhite

func IsWhite(r rune) bool

IsWhite Recognizes White Space

func Match

func Match(x rune)

Match Matches a Specific Input Character

func NewLine

func NewLine()

NewLine Recognizes and Skips Over a Newline

func Output

func Output()

Output Outputs Routine

func SkipWhite

func SkipWhite()

SkipWhite Skips Over Leading White Space

func Term

func Term() (value int)

Term Parses and Translates a Math Term

Types

This section is empty.

Jump to

Keyboard shortcuts

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