package
1.1.0
Repository: https://github.com/octacian/timecalc.git
Documentation: pkg.go.dev

# Functions

Compile takes an array of instructions and processes them returning an output Factor.
FromString takes a string of user input and returns a response.
InstructionsToString takes an array of instructions and prints them in plain text.
NewTime takes a string and returns a time or an error.
Parse takes an array of tokens and returns an array of instructions.
PrintDebug prints a string only if debug mode is enabled.
Reconstruct a string from a token list.
Tokenize a string, returning an array of tokens.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Instruction represents a part of a statement in which a particular Operation is to be carried out upon two terms, Left and Right.
NumberRegex represents any normal number in a mathematical statement.
TimeRegex represents an arbitrary time down to the second.
Token represents a part of some user input.

# Interfaces

Factor represents a single component of a mathematical statement.