GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BowenFu/lisp.cpp: A simple lisp interpreter in C++.

BranchesTags
Open more actions menu

Latest commit

 

History

72 Commits
72 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmake
cmake
 
 
include/lisp
include/lisp
 
 
sample
sample
 
 
src
src
 
 
test
test
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
core.lisp
core.lisp
 
 

Repository files navigation

lisp.cpp

lisp.cpp : a simple lisp interpreter / compiler in C++ with scheme style syntax + quote / unquote style macros.

The interpreter is inspired by SICP.

The macro system and the compiler is inspired by Writing an interpreter / a compiler in Go.

Interpreter sample

$ build/bin/interpret

;;; M-Eval input:
(define x '(2 3))

;;; M-Eval value:
(2 3)

;;; M-Eval input:
`(,@x 1)

;;; M-Eval value:
(2 3 1)

;;; M-Eval input:

Compiler sample

$ build/bin/compile "(define x '(2 3)) \`(,@x 1)" 
(2 3 1)

Refer to core.lisp and sample/CMakeLists.txt for more samples.

All macros are defined in core.lisp.

Standard Type

Platform Platform Platform

CMake CMake GitHub license codecov

About

A simple lisp interpreter in C++.

Topics

compilercppinterpreterlispmacroschemevirtual-machine

Resources

Readme
Apache-2.0 license
Activity

Stars

6 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.