Skip to content

Instantly share code, notes, and snippets.

View tholder's full-sized avatar

Tom Holder tholder

View GitHub Profile
@bengillies
bengillies / wikipeg.js
Created May 23, 2011 14:56
PEG based wikitext parser
wikitext = (function(){
/* Generated by PEG.js 0.6.1 (http://pegjs.majda.cz/). */
var result = {
/*
* Parses the input with a generated parser. If the parsing is successfull,
* returns a value explicitly or implicitly specified by the grammar from
* which the parser was generated (see |PEG.buildParser|). If the parsing is
* unsuccessful, throws |PEG.parser.SyntaxError| describing the error.
*/
##
# This small script is an example of what you can do with the superfeedr :
# we monitor a few feeds with superfeedr and when, these feeds actually have
# new messages, we are posting them to a twitter account.
require "rubygems"
require "twitter"
require "superfeedr"
#############################################################