InBrowserApp / tldr.inbrowser.app

📝 tldr InBrowser.App is a offline-capable PWA for tldr-pages. Fully runs in your browser. Zero API latency.
https://tldr.inbrowser.app
MIT License
177 stars 19 forks source link

Support for [C]ommand [L]ine [I]nterface [P]ages project #9

Open EmilyGraceSeville7cf opened 1 year ago

EmilyGraceSeville7cf commented 1 year ago

It's my TlDr project aiming to replace TlDr and provide clear and standardized syntax for everything. Here is syntax description. Can u provide support for both projects? For instance let user chose what project pages they want to explore: TlDr or Better TlDr ones.

rwv commented 1 year ago

It looks like that we need to do some kind of AST parsing in JavaScript which is a pain. Maybe this can be easier if there is a reference implementation.

I will keep this issue open and wait when Better tldr become more stable and popular.

EmilyGraceSeville7cf commented 1 year ago

I wanna implement AST parser in Golang. I'll notify u when it's ready. 😁

EmilyGraceSeville7cf commented 1 year ago

It looks like that we need to do some kind of AST parsing in JavaScript which is a pain. Maybe this can be easier if there is a reference implementation.

@rwv, this render function can be used as a reference for now. It's a render prototype but a working one. :) There is no AST parsing done, everything is implemented via string manipulation (as Bash and Sed doesn't support anything more complicated).