Skip to content

ttrung149/nscm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoscheme

Maybe tinier, C++ version of Norman Ramsey's uscheme language.

Installing

Clone the repository. Change directory to root folder and create the binary using

make nscm

Docs

After creating the binary from source run ./nscm --help to see the help menu. Run ./nscm to start the REPL.

Primitives supported include the following

if, define, set                                          -- Control flow, var assign
+, -, *, /, mod, >, >=, <, <=, =                         -- Arithmetic operations
number?, symbol?, procedure?, list?, string?, boolean?   -- Type check
equal?, sin, cos, tan, sqrt, log, abs                    -- Math operations
lambda,                                                  -- Lambda expression
car, cdr, cons, null?, map, filter, append               -- List operations

Examples

There are some basic .scm testing files in the examples/ folder. Run the following to import the examples"

./nscm examples/test.scm examples/list.scm

Authors

Contributing

Fork the repo and submit a pull request. Check out TODO to see what hasn't been implemented.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

About

interpreter for a subset of scheme language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published