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.

Owl: Parser generator for visibly pushdown languages

89 pointsby ccmcareyover 6 years ago

3 comments

ccmcareyover 6 years ago
I&#x27;ve been looking at parser generators recently in an effort to begin writing my own simple interpreted language.<p>My end goal is a self hosted language.<p>My first attempt was writing a recursive descent parser by hand: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;cmcarey&#x2F;eee1571721141c356d4f61b453a600f0" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;cmcarey&#x2F;eee1571721141c356d4f61b453a6...</a><p>This didn&#x27;t work so well (badly structured as well as finding out my grammar was ambiguous after I&#x27;d written 600 lines of parser code).<p>Looking into alternative ways to write a parser, I&#x27;ve seen the usual yacc&#x2F;bison&#x2F;ANTLR type tools and relevant discussions here on HN.<p>Owl looks fantastic and probably exactly what I&#x27;m looking for. Fantastic interactive page where you enter the grammar and code and it shows a visual representation of the parse tree: <a href="https:&#x2F;&#x2F;ianh.github.io&#x2F;owl&#x2F;try&#x2F;#example" rel="nofollow">https:&#x2F;&#x2F;ianh.github.io&#x2F;owl&#x2F;try&#x2F;#example</a>
评论 #18400717 未加载
评论 #18400670 未加载
评论 #18403307 未加载
评论 #18400312 未加载
评论 #18399783 未加载
评论 #18399777 未加载
评论 #18402314 未加载
评论 #18400167 未加载
评论 #18399930 未加载
评论 #18400828 未加载
评论 #18405540 未加载
评论 #18399888 未加载
qwerty456127over 6 years ago
Is there an example of such a language?
评论 #18400783 未加载
imoverclockedover 6 years ago
Unfortunate naming. This is not to be confused with OWL or OWL2:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Web_Ontology_Language" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Web_Ontology_Language</a>
评论 #18403670 未加载