Skip to content

Simple calculator demo for a presentation about interpreter development

License

Notifications You must be signed in to change notification settings

Funkschy/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code example for the "Writing interpreters in Kotlin" presentation

The main method is inside the cli package. It simply reads a line from stdin which is then lexed, parsed and evaluated.

The corresponding presentation can be found here

Syntax

The interpreter supports the four basic math operations, parentheses, operator precedence and variables.

Example

test = 5
test = test + 2 * 3
test * (2 + 3)

=> 55

About

Simple calculator demo for a presentation about interpreter development

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages