-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notes for Ruby Ireland talk on ANTLR.
- Loading branch information
Ana Nelson
authored and
Ana Nelson
committed
Jun 15, 2010
1 parent
32c3fd5
commit 5e20a96
Showing
9 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
webby/content/talks/ruby-ireland-2010-06-15/antlr-notes.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
What is ANTLR? | |||
Parser Generator | |||
ANother Tool for Language Recognition | |||
|
|||
What would you use it for? | |||
- Domain Specific Languages | |||
- When a regular expression gets too complicated | |||
- When you need really robust code | |||
- Learning more about computer science | |||
|
|||
vs. Ragel | |||
- Ragel better for state-machine type uses | |||
- ANTLR has recursion - *very* powerful and used in Excel parser | |||
- For many parsing tasks either will work, should try both and see which fits | |||
|
|||
Targets | |||
- native Ruby: new target | |||
- Java: very well tested, the 'default' target for ANTLR, use via JRuby | |||
- C: For performance/compactness if you don't need JRuby compatibility and you don't mind C | |||
- C# on CLR maybe? | |||
|
|||
Native Ruby Target | |||
http://ohboyohboyohboy.github.com/antlr3/ | |||
|
|||
Surpass | |||
- Create Excel spreadsheets using just Ruby - no need to have Microsoft Office or Windows | |||
- We write the .xls files directly | |||
- Microsoft file formats are pretty nasty! | |||
- This is why we need a parser!! | |||
|
15 changes: 15 additions & 0 deletions
15
webby/content/talks/ruby-ireland-2010-06-15/antlr-talk.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
--- | |||
title: ANTLR for Ruby | |||
subtitle: Excel Formula Generation | |||
author: Ana Nelson | |||
created_at: 2010-06-15 | |||
layout: beamer | |||
filter: | |||
- erb | |||
--- | |||
|
|||
|
|||
\begin{frame}[fragile] | |||
<%= gorgl("../lib/surpass/cell.rb", "string-cell") %> | |||
\end{frame} | |||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
--- | |||
extension: tex | |||
filter: erb | |||
--- | |||
\documentclass{beamer} | |||
\usetheme{Boadilla} | |||
|
|||
\usepackage{fancyvrb} | |||
\usepackage{color} | |||
\usepackage[ascii]{inputenc} | |||
\usepackage{hyperref} | |||
\usepackage{wrapfig} | |||
\usepackage{multicol} | |||
|
|||
<%= pygments_latex_styles %> | |||
|
|||
|
|||
\title{<%= @page.title %>} | |||
\subtitle{<%= @page.subtitle %>} | |||
\author{<%= @page.author %>} | |||
\date[<%= @page.created_at.strftime("%B %Y") %>]{<%= @page.created_at.strftime("%d %b %Y") %>} | |||
|
|||
\begin{document} | |||
|
|||
\begin{frame}[plain] | |||
\titlepage | |||
\end{frame} | |||
|
|||
|
|||
<%= @content %> | |||
|
|||
\end{document} |