chsasank / llama.lisp

Lisp dialect designed for HPC and AI
GNU Lesser General Public License v2.1
15 stars 6 forks source link

More features for C-Lisp #35

Closed GlowingScrewdriver closed 4 months ago

GlowingScrewdriver commented 5 months ago

Implemented the following:

GlowingScrewdriver commented 5 months ago

Scopes are introduced by compound statements, functions, if/else, for, and while -- in general, any collection of statements.

GlowingScrewdriver commented 5 months ago

Added more array tests. The matrix-sum test uses arrays allocated using both alloc expression (stack allocation) and standard C library's malloc function (heap allocation)!

GlowingScrewdriver commented 4 months ago

Added tests gaussian-elimination and insertion-sort. These two tests take inputs from the command line, using C standard library functions atoi and strtof

GlowingScrewdriver commented 4 months ago

Will fix #34 and #33

chsasank commented 4 months ago

Scope code can be better structured. Added comments.