Skip to content

Commit

Permalink
Update seph mode for Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
olabini committed Jun 27, 2010
1 parent d3c1923 commit 10e51f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
27 changes: 13 additions & 14 deletions docs/plan
@@ -1,20 +1,6 @@
Plan to get somewhere working:
------------------------------

- Create a new site
- Create two examples - one based on people, and one on Guy Steeles tail recursion example
(use local blocks for the people example)

- Implement a simplistic interpreter for simple mimicking
- Implement a simple, functional operator shuffling
- Implement a simplistic interpreter for defining and running methods.
- Generate simple bytecode for the above
- Integrate KILIM into simple bytecode
- Integrate tail recursion into the above







Expand Down Expand Up @@ -48,3 +34,16 @@ To implement for fact:
- *
- -
- println





Lexical scopes:
- sent to every invocation of something. BIF's will need to be able to take:
ThreadContext, Scope, Self

- local variables
- pointer to outer scope

is the object scope separate from the lexical scope? does a lexical scope capture self? ... probably not - it would be hard to implement methods correctly in that case.
17 changes: 9 additions & 8 deletions share/emacs/seph-mode.el
Expand Up @@ -200,20 +200,21 @@
;; "Symbol"
;; "System"
;; "Text"
"Something"
)
"seph mode prototype names")

(defconst seph-cell-names '(
;; "print"
;; "println"
"println"

;; "cell"
;; "cell?"
;; "documentation"

;; "if"
"if"
;; "unless"
;; "while"
"while"
;; "until"
;; "loop"
;; "for"
Expand Down Expand Up @@ -353,8 +354,8 @@
;; "break"
;; "continue"

;; "mimic"
;; "self"
"with"
"self"
;; "use"

;; "fn"
Expand All @@ -369,9 +370,9 @@
;; "dlecrox"
;; "dsyntax"

;; "true"
;; "false"
;; "nil"
"true"
"false"
"nil"
)
"seph mode operator names")

Expand Down

0 comments on commit 10e51f8

Please sign in to comment.