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.

Full Python 3 Grammar Specification

27 pointsby quazarover 6 years ago

1 comment

xg15over 6 years ago
I was wondering how they&#x27;d specify a language with semantic indents in an EBNF grammar. Apparently they don&#x27;t do that at all - they seem to use &quot;virtual&quot; INDENT and DEDENT tokens that act like brackets. I suppose there is an instruction written in prose somewhere how to convert the actual python into the python-with-invisible-brackets that is defined here.<p>Very clever!
评论 #19235966 未加载