GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tinyinterpreters/const: The first Tiny Interpreters interpreter. It takes a non-negative integer literal from source text to value.

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
src/CONST
src/CONST
 
 
tests/Test
tests/Test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
elm.json
elm.json
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 

Repository files navigation

CONST

CONST is the first interpreter.

A complete program is a non-negative integer literal:

123

We get to follow a complete program from source text to an evaluated value:

flowchart TD
    A["123"] -->|parse| B["Program (Const 123)"]
    B -->|evaluate| C["VNumber 123"]
Loading

For a closer look at each step, read CONST: From Source Text to Value.

Try it

You'll need Nix with flakes enabled.

nix develop
elm repl

Then:

import CONST.Interpreter as I

I.run "123"
-- Ok (VNumber 123)

About

The first Tiny Interpreters interpreter. It takes a non-negative integer literal from source text to value.

blog.tinyinterpreters.dev/posts/const/

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.