Skip to content

tristan/cclojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

c code heavily based on [femotolisp](https://github.com/JeffBezanson/femtolisp).

Files taken directly from [femotolisp](https://github.com/JeffBezanson/femtolisp):
 * ios.c/h
 * utils.h
 * dtypes.h
 * utf8.c/h
 * timefuncs.c/h

femtolisp project euler prob 1
(define (pr1 n) (let ((x 0) (r 0)) (while (< x n) (begin (if (or (eq? (mod x 5) 0) (eq? (mod x 3) 0)) (set! r (+ r x))) (set! x (+ 1 x)))) r))
(pr1 1000)


c++ code is mostly my own (although somewhat influenced by femtolisp and the clojure java code), and is also an excercise in relearning c++(11), and thus will definitelly not be optimal or correct!

About

Messing around with writing clojure in c (just a playground project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published