Skip to content

Interpreter for algebraic expressions with proper operator precedence

Notifications You must be signed in to change notification settings

WimJongeneel/fs-math-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fs-math-interpreter

Made in F# with FsLexYacc.

dotnet run "1 + 1 * 2"

This will print the AST and the result of the expression

Supported operators:

  • atomic int: 1
  • plus: +
  • minus: -
  • times: *
  • division: /
  • parentheses: ( and )

Operator precedence is implemented in the grammer by using multiple rules.

About

Interpreter for algebraic expressions with proper operator precedence

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages