Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CONST

CONST is the first Tiny Interpreters interpreter. A complete program is just a non-negative integer literal:

123

That lets us 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.

To 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.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages