Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

. some style issues resolved

  • Loading branch information...
commit 978256cf808d442c12bde8025347e5752cd0f5fc 1 parent 07423c0
@kschiess authored
View
17 website/source/get-started.html.textile
@@ -311,9 +311,11 @@ class MiniP < Parslet::Parser
rule(:operator) { match('[+]') >> space? }
# Grammar parts
- rule(:sum) { integer.as(:left) >> operator.as(:op) >> expression.as(:right) }
+ rule(:sum) {
+ integer.as(:left) >> operator.as(:op) >> expression.as(:right) }
rule(:arglist) { expression >> (comma >> expression).repeat }
- rule(:funcall) { identifier.as(:funcall) >> lparen >> arglist.as(:arglist) >> rparen }
+ rule(:funcall) {
+ identifier.as(:funcall) >> lparen >> arglist.as(:arglist) >> rparen }
rule(:expression) { funcall | sum | integer }
root :expression
@@ -332,9 +334,14 @@ class FunCall < Struct.new(:name, :args);
end
class MiniT < Parslet::Transform
- rule(:int => simple(:int)) { IntLit.new(int) }
- rule(:left => simple(:left), :right => simple(:right), :op => '+') { Addition.new(left, right) }
- rule(:funcall => 'puts', :arglist => subtree(:arglist)) { FunCall.new('puts', arglist) }
+ rule(:int => simple(:int)) { IntLit.new(int) }
+ rule(
+ :left => simple(:left),
+ :right => simple(:right),
+ :op => '+') { Addition.new(left, right) }
+ rule(
+ :funcall => 'puts',
+ :arglist => subtree(:arglist)) { FunCall.new('puts', arglist) }
end
parser = MiniP.new
View
4 website/source/stylesheets/site.css.sass
@@ -70,6 +70,10 @@ a
body.code
code
+ font:
+ size: 0.9em
+ family: "Monaco", monospace
+
// _why's poignant guide theme
.sh_keyword // keyword
color: #761A47
Please sign in to comment.
Something went wrong with that request. Please try again.