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
: foreach app/*.coffee |> ./node_modules/coffee-script/bin/coffee -c -o _build/coffee/ %f |> _build/coffee/%B.js | |
: foreach _build/coffee/*.coffee |> ./node_modules/istanbul/lib/cli.js --output _build/instrumented/ %f |> _build/instrumented/%B.js |
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
define("app/router", [], function() { | |
"use strict"; | |
var __moduleName = "app/router"; | |
var Router = Ember.Router.extend({location: 'history'}); | |
Router.map(function() {}); | |
var $__default = Router; | |
return { | |
get default() { | |
return $__default; | |
}, |
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
{ urlRoot: '/', file: '_build/dev/index.html' } ' -> ' '_build/dev/index.html' | |
{ urlRoot: '/', directory: '_build/dev' } ' -> ' '_build/dev/index.html' | |
events.js:72 | |
throw er; // Unhandled 'error' event | |
^ | |
Error: read ECONNRESET | |
at errnoException (net.js:904:11) | |
at TCP.onread (net.js:558:19) |
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
.... | |
#region StateMachine | |
static ServiceController() | |
{ | |
Define(() => | |
{ | |
Initially( | |
When(OnStart) |
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
" When we fold or unfold a block of text determine the block | |
" delimiters via syntax. You can use 'za' to toggle a fold. | |
" There are several other commands as well. | |
" 'zM' to close all folds | |
" 'zR' to open all folds | |
set foldmethod=syntax | |
" Lets map 'za' to spacebar while in NORMAL mode | |
nnoremap <space> za<space> |
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
Nonterminals expression. | |
Terminals number '+' '-' '/' '*' '(' ')'. | |
Rootsymbol expression. | |
Endsymbol '$end'. | |
Left 300 '+'. | |
Left 300 '-'. | |
Left 400 '*'. | |
Left 400 '/'. |
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
[0-9]+ : | |
{token, {number, TokenLine, list_to_integer(TokenChars)}}. | |
[0-9]+\.[0-9]+ : | |
{token, {number, TokenLine, list_to_float(TokenChars)}}. | |
\+ : {token, {'+', TokenLine}}. | |
\- : {token, {'-', TokenLine}}. | |
/ : {token, {'/', TokenLine}}. | |
\* : {token, {'*', TokenLine}}. |
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
-module(generator). | |
-export([generate/1]). | |
generate([Root, Left, Right]) -> | |
LeftExp = generate(Left), | |
RightExp = generate(Right), | |
RootExp = generate(Root), | |
LeftExp ++ RightExp ++ RootExp; | |
generate({number, _Line, Value}) -> |
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
{ok, Tokens, _EndLine} = lexical:string("2 + 1 * 3"). | |
{ok, Ast} = grammar:parse(Tokens). | |
Program = generator:generate(Ast). | |
vm:start(). | |
vm:load(Program). | |
vm:stop(). | |
receive {return, Value} => Value end. |
OlderNewer