Skip to content

Instantly share code, notes, and snippets.

@fooqri
Created January 19, 2013 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fooqri/4573734 to your computer and use it in GitHub Desktop.
Save fooqri/4573734 to your computer and use it in GitHub Desktop.
A simple list for a Ragel example
## Tasks
- Go to Whole Foods
- Go to produce section
- get oranges
maybe Mandarine and Valencia
- get avocados
- get squash
maybe buttercup if they have it
- Go to bakery section
- get bagels
- get 12 cupcakes
- Go to Dairy
- get milk
should be organic 2% if they have it
- Pay for items
## Tasks
- Write up a Ragel example for blog
- Create simple example for parsing lists
- Ragel code for a parser
Should provide support for parsing multiple task lists.
It should also support hierarchical task lists
- Create a simple ruby class that uses the parser
- post code as gists
- Write up a blog post describing the use of ragel in the example
- Post to blog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment