Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

an arithmetic calculator written with compiling theory in mind

License

NotificationsYou must be signed in to change notification settings

biuld/calculator

Repository files navigation

an arithmetic calculator written with compiling theory in mind

  • This repo is intended to be a follow-up practice after watching Mr. Landwerth's building a complier tutorial (see the link below) and refresh my knowledge of compiling theory back in the school.
  • This repo is not a line-to-line replica to Mr. Landwerth's Minsk Complier (written in C# with OO design).
  • I try to write everything from scratch. (might change my mind later :-0 )
  • I hope eventualycalculator can be a full fledged complier targeting WebAssembly.

demo

command list:

:context:enableAST:disableAST:help:quit

Status

For nowcalculator supports:

  • basic arithmetic computation with parentheses
  • if expression
  • assignments & variables
  • type check

You can check out all the test cases undertest/Spec.hs

Reference

Exploring Languages with Interpreters and Functional Programming 2018 Version By H. Conrad CunninghamBuilding a Compiler By Immo Landwerth


[8]ページ先頭

©2009-2025 Movatter.jp