Skip to content

Instantly share code, notes, and snippets.

@qmx
Created July 5, 2010 05:45
Show Gist options
  • Save qmx/464041 to your computer and use it in GitHub Desktop.
Save qmx/464041 to your computer and use it in GitHub Desktop.
grammar KanbanDSL
rule stage
(name (':' limit)? (cards / substages) ';')*
end
rule substages
substage*
end
rule substage
'[' name (':' limit)? cards ']'
end
rule limit
[0-9]+ {
def text_value
text_value.to_i
end
}
end
rule cards
'(' ((name [,]?)+)? ')'
end
rule name
[a-zA-Z0-9\s]+
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment