Skip to content

Honeta/C-Repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

C-Repl

C-Repl supports signed or unsigned integer(also short/long long) and float(also double) calculations currently.

Run it like this:

gcc crepl.c -o crepl -ldl && ./crepl

Use it like this:

crepl> 12 + 3

15

or like this:

crepl> sqrt(4)

2

or even like this:

crepl> int fibonacci(int n) { return n <= 2 ? 1 : fibonacci(n - 1) + fibonacci(n - 2); }

Get: int fibonacci(int n) { return n <= 2 ? 1 : fibonacci(n - 1) + fibonacci(n - 2); }

crepl> fibonacci(6)

8

Enjoy it!

About

A simple "C-interpreter"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages