Permalink
Browse files

CoffeeScript 1.0.0

  • Loading branch information...
1 parent 3be22bd commit 33d2577fb52e371e5456d1543c0eaf51807fa7a4 @jashkenas jashkenas committed Dec 24, 2010
@@ -1,5 +1,5 @@
###
-CoffeeScript Compiler v0.9.6
+CoffeeScript Compiler v1.0.0
Released under the MIT License
###
@@ -3,3 +3,4 @@ theSwitch = 0
[theBait, theSwitch] = [theSwitch, theBait]
+
@@ -64,6 +64,7 @@ code, pre, tt, textarea {
word-wrap: break-word;
}
tt {
+ display: inline-block;
background: #fff;
border: 1px solid #dedede;
padding: 0px 0.2em;
@@ -86,9 +87,10 @@ code, pre, tt, textarea {
div.code {
position: relative;
background: #fff;
- -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
- -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
- box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
+ border: 1px solid #d8d8d8;
+ -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.23);
+ -moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.23);
+ box-shadow: 0px 0px 4px rgba(0,0,0,0.23);
zoom: 1;
}
div.code .minibutton {
@@ -313,20 +315,23 @@ div.code {
width: 47%; right: 50%;
float: left;
}
- #repl_source {
- padding-left: 5px;
- width: 100%;
- height: 100%;
- border: 0;
- overflow-y: auto;
- resize: none;
- }
- #repl_results {
- text-transform: none;
- overflow-y: auto;
- left: 50%;
- border-left-color: #555;
+ #repl_source {
+ padding-left: 5px;
+ width: 100%;
+ height: 100%;
+ border: 0;
+ overflow-y: auto;
+ resize: none;
+ }
+ #repl_results_wrap {
+ white-space: pre;
}
+ #repl_results {
+ text-transform: none;
+ overflow-y: auto;
+ left: 50%;
+ border-left-color: #555;
+ }
/*----------------------------- Mini Buttons ---------------------------------*/
.minibutton {
@@ -12,7 +12,7 @@
<span class="nv">content = </span><span class="nx">compile</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">readFileSync</span> <span class="nx">filename</span><span class="p">,</span> <span class="s1">&#39;utf8&#39;</span>
<span class="nx">module</span><span class="p">.</span><span class="nx">_compile</span> <span class="nx">content</span><span class="p">,</span> <span class="nx">filename</span>
<span class="k">else</span> <span class="k">if</span> <span class="nx">require</span><span class="p">.</span><span class="nx">registerExtension</span>
- <span class="nx">require</span><span class="p">.</span><span class="nx">registerExtension</span> <span class="s1">&#39;.coffee&#39;</span><span class="p">,</span> <span class="p">(</span><span class="nx">content</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nx">compile</span> <span class="nx">content</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p>The current CoffeeScript version number.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.VERSION = </span><span class="s1">&#39;0.9.6&#39;</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">&#182;</a> </div> <p>Words that cannot be used as identifiers in CoffeeScript code</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.RESERVED = </span><span class="nx">RESERVED</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">&#182;</a> </div> <p>Expose helpers for testing.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.helpers = </span><span class="nx">require</span> <span class="s1">&#39;./helpers&#39;</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">&#182;</a> </div> <p>Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
+ <span class="nx">require</span><span class="p">.</span><span class="nx">registerExtension</span> <span class="s1">&#39;.coffee&#39;</span><span class="p">,</span> <span class="p">(</span><span class="nx">content</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nx">compile</span> <span class="nx">content</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p>The current CoffeeScript version number.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.VERSION = </span><span class="s1">&#39;1.0.0&#39;</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">&#182;</a> </div> <p>Words that cannot be used as identifiers in CoffeeScript code</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.RESERVED = </span><span class="nx">RESERVED</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">&#182;</a> </div> <p>Expose helpers for testing.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.helpers = </span><span class="nx">require</span> <span class="s1">&#39;./helpers&#39;</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">&#182;</a> </div> <p>Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
compiler.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.compile = compile = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nv">options = </span><span class="p">{})</span> <span class="o">-&gt;</span>
<span class="k">try</span>
<span class="p">(</span><span class="nx">parser</span><span class="p">.</span><span class="nx">parse</span> <span class="nx">lexer</span><span class="p">.</span><span class="nx">tokenize</span> <span class="nx">code</span><span class="p">).</span><span class="nx">compile</span> <span class="nx">options</span>
Oops, something went wrong. Retry.

0 comments on commit 33d2577

Please sign in to comment.