Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

📲 A simple calculator written by cpp with SDL2 and LLN grammar.

License

Notifications You must be signed in to change notification settings

mythsman/LLN_calculator_guisan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLN_calculator_guisan

Codacy Badge GitHub license

Introduction

A simple calculator with guisan and LL grammar.

Runtime requirements

  • SDL 2.0+
  • SDL2_image
  • SDL2_ttf
  • SDL2_mixer
  • Guisan(built-in)

LL Grammar

Raw Grammar:

E-->E+T|E-T|T
T-->N*T|N/T|N
N-->M^N|M
M-->(E)
   |sin(E)
   |cos(E)
   |ln(E)
   |lg(E)
   |sqrt(E)
   |tan(E)
   |number

Eliminate the left recursion:

E-->Te
e-->+Te|-Te|void
T-->Nt
t-->*Nt|/Nt|void
N-->Mn
n-->^N|void
M-->(E)
   |sin(E)
   |cos(E)
   |ln(E)
   |lg(E)
   |sqrt(E)
   |tan(E)
   |number

About

📲 A simple calculator written by cpp with SDL2 and LLN grammar.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published