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.

LL(1) Parser Visualization

113 pointsby curling_gradover 2 years ago

5 comments

jjiceover 2 years ago
Very tangential, but I took a compiler course my senior year of college. It was a graduate level with (in my opinion) one of the best professors in the department. He maintains a known-name ML compiler (not NJ) and has studied language theory his entire career, plus he&#x27;s an excellent teacher and general person.<p>I worked my ass off in the class and it was a blast. Aced all the projects and almost all the homework assignments. The exams were fine too, except one section, parsing algorithms.<p>I had just started seeing a girl the week before our week on LR, LALR, LL, etc, and my mind did a lot of wandering during those two lectures. I had everything down for that class, except I had so little knowledge of parsing algorithms. I didn&#x27;t realize how little I knew until the exam where I lost 30 points to parsing questions. That ended up dropping me to an A-.<p>Now whenever I see parsing algorithms mentioned, I get a little laugh. Time with a girl was definitely worth the missed points for a nerdy computer science student.<p>This is the site (I believe - there were a few) I used to help scrape a basic understanding together to prep me for the final exam, so I definitely recommend.
评论 #34093810 未加载
Decabytesover 2 years ago
This is very timely. I was browsing the Pharo languages feature list^1 and they described the language as having<p>&gt; Since the grammar is LL(1), it is very fast to parse<p>and I had never heard of that term before<p>1. <a href="https:&#x2F;&#x2F;pharo.org&#x2F;features#Simple_language_syntax_35" rel="nofollow">https:&#x2F;&#x2F;pharo.org&#x2F;features#Simple_language_syntax_35</a>
评论 #34095748 未加载
carapaceover 2 years ago
Reminds me of Python Tutor ( <a href="https:&#x2F;&#x2F;pythontutor.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pythontutor.com&#x2F;</a> )<p>(Not to nerd-snipe but it would be fun to write a little doggerel to make Python Tutor draw a parse tree, eh? If you do it please post a link?)<p>We need more tools like these.
civopsecover 2 years ago
It seems like examples for these kinds of simpler grammars tend to be pretty dry. It would be fun to use more programming language-like examples. And then you might also see what difficulties you run into with them (with their limitations).
评论 #34096235 未加载
atonalfreeriderover 2 years ago
Please see my lisp parser: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;40ua8NRyrro" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;40ua8NRyrro</a>