Git Product home page Git Product logo

Comments (8)

srid avatar srid commented on September 23, 2024

Split into multiple libraries ?

from org-mode-hs.

lucasvreis avatar lucasvreis commented on September 23, 2024

Split into multiple libraries ?

This makes sense, although it would be nice to have a common prefix to the libraries, and just org feels a bit pretentious. Maybe the org-parser prefix is fine, and I would do this:

  • org-parser -> parser
  • org-parser-cli -> provides a org-hs executable
  • org-parser-exporters -> common exporter functionality
  • org-parser-html
  • org-parser-pandoc
  • ...

from org-mode-hs.

srid avatar srid commented on September 23, 2024

What do the last two mean?

Also, what does org-parser-cli provide?

I'm trying to understand the various 'components' of this project.

from org-mode-hs.

lucasvreis avatar lucasvreis commented on September 23, 2024

The org-parser-exporters library would basically include the Org.Exporters.Common file, that exports the ExportBackend class. Other libraries can create export backends by instantiating this class.

The name is awkward but org-parser-html and org-parser-pandoc basically just do this, I wrote the last two like that because org-parser-exporter-html and org-parser-exporter-pandoc are too awkward... lol

from org-mode-hs.

srid avatar srid commented on September 23, 2024
  • horg -> cli exectuable
  • horg-parser -> the parser and AST
  • horg-exporter -> exporter core, along with default exporters (html and pandoc)
    • can further be split into horg-exporter, horg-exporter-html and horg-exporter-pandoc if really must

from org-mode-hs.

lucasvreis avatar lucasvreis commented on September 23, 2024

This division makes sense, but isn't org-hs better than horg?

from org-mode-hs.

srid avatar srid commented on September 23, 2024

I'm not even a fan of horg; I'd come up with a really unique and memorable name, like Orgile.

from org-mode-hs.

lucasvreis avatar lucasvreis commented on September 23, 2024

I think I'll do this: since it's available, the common prefix will be just org (so org-parser, org-cli, org-exporters). If people complain, yaorg. For some reason the other names sound to me like they're either about an app or some sort of new markup language, different from emacs' org.

Also, this library seems closer org-element than the other available Haskell parsers.

Edit: perhaps the CLI tool can have a nicer name, since it's more like an "app".

from org-mode-hs.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.