TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A quick intro to writing a parser with Treetop

25 pointsby aarongoughover 14 years ago

4 comments

barrkelover 14 years ago
This page would be more readable if there wasn't a huge black bar overlaid across the middle of it.
评论 #1820315 未加载
febelingover 14 years ago
This example uses Treetop. The same variety of parser, PEG (parsing expression grammar), but not code-generating, but dynamically defining ruby code is Citrus. It was really a pleasure to work with. The difference is that you don't need a preliminary compile step in a rake file e.g., which I like better for a language as dynamic as ruby.<p><a href="http://github.com/mjijackson/citrus" rel="nofollow">http://github.com/mjijackson/citrus</a>
评论 #1820559 未加载
chipsyover 14 years ago
My favorite right now is PEG.js: <a href="http://pegjs.majda.cz/" rel="nofollow">http://pegjs.majda.cz/</a>
RickHullover 14 years ago
ctrl-f grammer<p>Really?
评论 #1820881 未加载