Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable PHP Extra style footnoting in markdown.

  • Loading branch information...
commit a5226be72e79c1922d1f73bc1152acf29033c20e 1 parent 33412f9
@flaviusb authored
View
21 examples/byeloblog.net/build.ik
@@ -24,6 +24,27 @@ about_data = {
nomod = {
modified: ""
}
+; The examples page has a slightly more interesting setup
+examples_sections = {
+ intro: {
+ title: "Overview of the high level architecture"
+ }
+ xml: {
+ title: "Generating XML"
+ },
+ css: {
+ title: "Generating CSS"
+ },
+ shell: {
+ title: "Invoking shell commands"
+ },
+ genx: {
+ title: "Using the Build DSL"
+ },
+ putting_it_all_together: {
+ title: "Putting it all together"
+ }
+}
examples_data = {
title: "Examples of a fictional sibling of an elder god...",
header: header,
View
7 examples/byeloblog.net/docs.md
@@ -1 +1,8 @@
+##Invocation
+
+##Structure of the modules
+
+xml.ik
+
+
Hahaha, no, really.
View
2  genx.ik
@@ -51,7 +51,7 @@ GenX = Origin mimic do(
fromMD = method("Get a markdown file, process it, and return it", filename,
pipe = []
frompipe = fn(x, pipe << x)
- Shell out(printer: frompipe, "markdown", "-F", "0x4", filename)
+ Shell out(printer: frompipe, "markdown", "-F", "0x200004", filename)
pipe join("\n") replaceAll(#/^"|([^\\])"/, #[$1\\"]))
fromMDText = method("Transform the provided Text from markdown into html", mdtext,
pipe = []
View
8 json.ik
@@ -10,6 +10,10 @@ arip = dsyntax(#[Anaphorically iterate through a seq, returning "body" executed
Parser = Origin mimic do(
; Parsers take a parse position and a data structure, and return a parse position and a data structure or nil
data = ""
+ hp = fn("Used to wrap delayed invocation; if parser is activatable, activate it with the argumetns. Otherwise, it must be a message; call it to get the parser to call, and then call that parser with the arguments.", parser, +arguments,
+ case(parser,
+ Message,
+
; seq => and and alt => or are combinators
alt = method("Return a result from the first parser in parsers to return a result; if none do, return nil.", +parsers,
return fn(pos, struct,
@@ -66,7 +70,9 @@ JSONParser = Parser mimic do(
string = seq(lit(#["]), wraplit(escaped, fn(str, str)), lit(#["]))
number = wraplit(lit(#/^[-+]?[0-9]+(\.[0-9]*)?/), fn(str, str toDecimal))
ws = lit(#/^[ \n]*/)
- jlist = seq(wrapped(lit("["), fn(x, y, [])), opt(seq(ws, alt(number, string), star(seq(ws, lit(","), ws, alt(number, string))))), ws, lit("]")))
+ thing = nil
+ jlist = seq(wrapped(lit("["), fn(x, y, [])), opt(seq(ws, 'thing), star(seq(ws, lit(","), ws, 'thing))), ws, lit("]"))
+ thing = alt(number, string))
jj = JSONParser
; expression = list or dict or literal
; dict = ...
Please sign in to comment.
Something went wrong with that request. Please try again.