Skip to content

hemantmehra/lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lisp

A simple lisp interpreter implementation in C. About lisp: https://en.wikipedia.org/wiki/Lisp_(programming_language)

Syntax

Declaring variables

(define x 10)

Declaring function

(define sqr        
	(lambda (x)     
		(* x x))) 
    
(define sos     
	(lambda (x y)  
		(+ (sqr x) (sqr y))))

Function calling

(sos 3 4)

Output: - 25

Here sqr - square
sos - sum of squares

Build

run command: - (needs gcc compilier and make tool)

make

Start interpreter

on mac/linux - .\lisp.o
on windows - ./lisp.o

About

A simple lisp interpreter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •