Skip to content
This repository was archived by the owner on Mar 16, 2018. It is now read-only.

alefnula/panda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datatypes
=========

Panda has 4 builtin datatypes:

1. Numbers: 3, +2, -1, 3.44, +3.41, -3.12)
2. Strings: 'my string', 'other string'
3. Lists:   [1 2 3 4], [1 'test' 2.93 'string']
4. Lambdas: (lambda (x) (* x x))

Syntax
======

Panda has a simple scheme like syntax, i.e. expressions can be either:

1. Number, String, List or Lambda, Variable
2. Function call: (function argument1 argument2)
3. Special form

Special Forms are:

1. Variable definition: (define var exp)
2. Function definition: (define (function_name arg1 arg2) exp+)
3. If:                  (if exp true_exp false_exp)
4. Cond:                (cond (cond1_exp exp) (cond2_exp exp))
5. Let:                 (let ((var1 exp) (var2 exp)) exp+)
6. Set!:                (set! var exp)
7. Lambda:              (lambda (arg1 arg2 arg3) exp+)

About

Panda (abbreviated from Python Lambda) is a Scheme implementation in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages