language

command module
v0.0.0-...-4b41b39 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 8 Imported by: 0

README

language

CircleCI Docker Cloud Build Status Coverage Status GoDoc Go Report Card

Getting started

This section assumes you have go 1.11+

# Download the source
go get github.com/davidsbond/language
# Build the binary
go install github.com/davidsbond/language

# Start the repl
./language

> 1 + 1
2
>

Project structure

.
├── ast             # Types representing the abstract syntax tree
├── builtin         # Built-in methods
├── evaluator       # Methods for evaluating expressions
├── lexer           # Lexical analysis methods
├── object          # Object definitions
├── parser          # The token parser
└── token           # Token definitions

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package ast contains types that are contained within the abstract syntax tree for the language
Package ast contains types that are contained within the abstract syntax tree for the language
Package builtin contains methods that can be directly called from the evaluated source code.
Package builtin contains methods that can be directly called from the evaluated source code.
Package evaluator contains methods for traversing the abstract syntax tree.
Package evaluator contains methods for traversing the abstract syntax tree.
Package lexer contains the lexical analyzer for the language.
Package lexer contains the lexical analyzer for the language.
Package object contains types that represent in-memory objects while the interpreter is evaluating source code.
Package object contains types that represent in-memory objects while the interpreter is evaluating source code.
Package parser contains the Parser type, it is responsible for converting tokens produced by the lexer into the abstract syntax tree.
Package parser contains the Parser type, it is responsible for converting tokens produced by the lexer into the abstract syntax tree.
Package token contains constants used to identify collections of lexemes within the source code.
Package token contains constants used to identify collections of lexemes within the source code.

Jump to

Keyboard shortcuts

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