This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$unlink: (object) -> | |
if isArray(object) | |
$unlink(child) for child in object | |
else if typeof object is 'object' | |
unlinked: {} | |
(unlinked[key]: $unlink(value)) for key, value of object | |
return unlinked | |
else | |
object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$unlink: (object) -> | |
if isArray(object) | |
$unlink(child) for child in object | |
else if typeof object is 'object' | |
{ key: $unlink(value) } for key, value of object | |
else | |
object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B extends A: -> | |
@where_am_i: 'at work' | |
sayWhereYouAre: -> | |
alert 'I am ' + @where_am_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func1: -> | |
private: -> | |
'I am kind of hidden' | |
private() | |
# OK | |
func1(); | |
# Nope | |
private() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype A | |
# empty | |
prototype B extends A | |
constructor: -> | |
@where_am_i: 'at work' | |
sayWhereYouAre: -> | |
alert 'I am ' + @where_am_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype A | |
constructor: -> | |
say 1 | |
prototype B extends A | |
constructor: -> | |
say 2 | |
super() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[stan@psp-stan-arch ~]$ cd /home/stan/public/coffee-script/ | |
[stan@psp-stan-arch coffee-script]$ bin/cake build | |
[stan@psp-stan-arch coffee-script]$ bin/cake build:parser | |
Error: Cannot find module 'jison' | |
at loadModuleSync (node.js:842:13) | |
at require (node.js:950:12) | |
at /home/stan/public/coffee-script/lib/grammar.js:4:12 | |
at Object.<anonymous> (/home/stan/public/coffee-script/lib/grammar.js:580:2) | |
at Module._loadContent (node.js:966:21) | |
at Module._loadScriptSync (node.js:978:16) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A House class. | |
### @author Stan Angeloff | |
class House | |
### A buy(..) method | |
### @access public | |
### @return void | |
buy: -> | |
puts 'I am moving soon...' | |
### func(..) documented |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/grammar.coffee b/src/grammar.coffee | |
index 0ed752c..40dbc89 100644 | |
--- a/src/grammar.coffee | |
+++ b/src/grammar.coffee | |
@@ -75,6 +75,7 @@ grammar: { | |
o "Class" | |
o "Splat" | |
o "Existence" | |
+ o "Javadoc" | |
o "Comment" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sys: require('sys') | |
Lexer: require('../lib/lexer').Lexer | |
INTERPOLATION : /^\$([a-zA-Z_@]\w*)/ | |
class PartialLexer | |
constructor: (chunk) -> | |
@i: 0 | |
@chunk: chunk |
OlderNewer