Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages