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.

Ask HN: Best way to document a new language's grammar?

1 pointsby zMillerabout 7 years ago
Hey,<p>I&#x27;m in the process of writing the documentation for customer facing grammar (built using nearly.js) to allow for &#x27;easy&#x27; querying of an API by the average Joe.<p>I was thinking of actually writing a GraphQL schema for the language&#x27;s grammar and &#x27;flattening&#x27; it out into a static page. Added plus is the schema can be used for autocomplete like behavior in a moded Graphiql IDE.<p>What documentation tools have you used in the past to document a language&#x27;s grammar ? Would love your thoughts and feedback on how bad this idea is. Thanks !

no comments

no comments