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/diff: DIFF extends CONST with difference expressions whose operands are themselves expressions, introducing recursion throughout the interpreter.

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
src/DIFF
src/DIFF
 
 
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

DIFF

DIFF extends CONST with difference expressions:

-(456, 123)

Each operand is itself an expression, so they can be nested:

-(2, -(4, 3))

That one change introduces recursion throughout the grammar, AST, parser, and evaluator.

For a closer look, read DIFF: When Expressions Contain Expressions.

Try it

You'll need Nix with flakes enabled.

nix develop
elm repl

Then:

import DIFF.Interpreter as I

I.run "-(456, 123)"
-- Ok (VNumber 333)

About

DIFF extends CONST with difference expressions whose operands are themselves expressions, introducing recursion throughout the interpreter.

blog.tinyinterpreters.dev/posts/diff/

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

1 star

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.