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 - fr3fou/methor: simple math parser and evaluator from scratch, using https://github.com/fr3fou/djena/

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
demo.png
demo.png
 
 
main.ts
main.ts
 
 
math.ts
math.ts
 
 
math_test.ts
math_test.ts
 
 

Repository files navigation

methor

A simple math parser and evaluator

Usage

$ deno run ./main.ts repl
# or
$ deno run ./main.ts 5+3

TODO

  • Precedence
    • The deeper an operator parser is in the callstack, the higher precedence it has
  • Intersperse calls with whitespace eating
  • Negative numbers
  • Grouped expressions
  • Builtin math funcs
    • sin
    • cos
    • abs
    • pow
  • REPL
  • Evaluation
  • Constants
    • PI
    • TAU
  • Fix left/right associativity
    • 50/2*2+10 should evaluate to 60, not 22.5
  • Tests
  • More operators
  • Floats
  • Unary operators

About

simple math parser and evaluator from scratch, using https://github.com/fr3fou/djena/

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — 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.