In [1]:
(define Point (type "Point" (tuple) (dict `(("__init__" : ,(func (lambda (self x y) 
                                                                    (setitem self "x" x) 
                                                                    (setitem self "y" y)
                                                                    None)))))))

In [3]:
(Point 1 2)


Out[3]:
<calysto_scheme.scheme.Point object at 0x7ff035185828>

In [ ]:
(define-class NAME (bases)
   (name procedure)
   (name procedure))

In [12]:
! git status


# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	new file:   Classes in Scheme.ipynb
#	new file:   Parsing.ipynb
#	new file:   Project Ideas.ipynb
#
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#	modified:   Bugs.ipynb
#	modified:   Chapter 05 - Interpreting Scheme in Python.ipynb
#	modified:   Chapter 06 - Interpreting Python in Scheme.ipynb
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	a_sllgen.pdf
/home/dblank/ProgLangBook
#	a_sllgen.pdf

In [9]:
! git add Classes\ in\ Scheme.ipynb


/home/dblank/ProgLangBook

In [11]:
! git add Parsing.ipynb


/home/dblank/ProgLangBook

In [13]:
! git commit -m "Updates" .


[master 6b949ea] Updates
 6 files changed, 1879 insertions(+), 156 deletions(-)
 create mode 100644 Classes in Scheme.ipynb
 create mode 100644 Parsing.ipynb
 create mode 100644 Project Ideas.ipynb
/home/dblank/ProgLangBook
 create mode 100644 Project Ideas.ipynb

In [ ]:
! git push

In [1]:
1


Out[1]:
1

In [ ]: