davidedc / Fizzylogo

an object-oriented logo made in Coffeescript (Javascript)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fizzylogo

an object-oriented logo made in Coffeescript (Javascript)

notes for later:

  • the metaphor of the message is that it could be a list of things to do that can be executed partially, maybe, the receiver can do part of the message and return the rest for some other entity to do?
  • modern smalltalk does not have dot notation. This is also because temp variables are explicitly listed, so it's easy to tell whether a variable is a temp or is a lookup on the object's fields.
  • you can use dot notation to read/write instance variables, but not to invoke methods (because a method signature can be complex and contain spaces and it wouldn't make sense for a complex invocation to follow the dot). If one things that "." really stands for "'s", then it's a natural distinction, but if one comes from other OO languages this can be confusing.
  • some tricks happen behind the scene on the use of : as quote, and it plays on the perception of what users think are explicit lists, and other things that users don't perceive as lists but are actually lists behind the scenes, e.g. signatures and method bodies.

Install needed dependencies ("coffeescript" and "replace"): npm install

to run the tests using node: clear; cat $(cat sourceFilesOrder.txt) | coffee --stdio | grep obtained && say done

to generate the .js to then run the tests using node: cat $(cat sourceFilesOrder.txt) | coffee --stdio -c > ./dist/fizzylogo.js

to run the tests using the browser (no yielding, so things such as debugging and profiling are easier): cat $(grep -v '^xxxx' sourceFilesOrder.txt) | coffee --stdio -c > ./dist/fizzylogo.js; cp ./dist/fizzylogo.js sandbox/fizzylogo.js

to generate the JS source (e.g. to use in the browser): sh makeYieldingVersion.sh; cd yielding-version; cat $(grep -v '^tests' sourceFilesOrder.txt) | coffee --stdio -c > ../dist/fizzylogo.js; cd ..; cp dist/fizzylogo.js sandbox/fizzylogo.js

you can also generate the sources for a "yielding" version of the interpreter by running: sh makeYieldingVersion.sh

About

an object-oriented logo made in Coffeescript (Javascript)

License:MIT License


Languages

Language:JavaScript 53.6%Language:CoffeeScript 37.3%Language:HTML 5.3%Language:CSS 3.6%Language:Shell 0.2%