Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/ParserLuaTable #69

Open
alanlivio opened this issue Dec 13, 2017 · 3 comments
Open

lib/ParserLuaTable #69

alanlivio opened this issue Dec 13, 2017 · 3 comments
Labels

Comments

@alanlivio
Copy link
Member

alanlivio commented Dec 13, 2017

#Today, lib/PaserLibXML convert NCL EDTV in XML and convert it to an lib/Document object.
The lib/ParserLuaTable will load a lua table and convert it to a lib/Document object.

Possible usage:
ginga -l main.lua

Benefits:

  • ease the development of ginga automatic tests
  • possible integration of ginga and DietNCL
  • possible enable ginga load another NCL syntaxes (e.g. [1])

[1] https://dl.acm.org/citation.cfm?id=3126866

@robertogerson
Copy link
Collaborator

Maybe, another related project: https://github.com/danielsm/Lua2NCL

Just a question: is the ideia to parse directly from a Lua table? Or to convert from Lua table -> XML (or DOM) -> Execution Model.

I believe it would be easier (and would avoid duplicated code) if there is only one input format (or the XML or the Lua table). The other formats should be translated to it.

@alanlivio
Copy link
Member Author

alanlivio commented Jan 9, 2018

Just a question: is the ideia to parse directly from a Lua table? Or to convert from Lua table -> XML (or DOM) -> Execution Model.

Today, PaserLibXML does XML -> Execution Model
The idea of ParserLuaTable is LuaTable -> Execution Model

I believe it would be easier (and would avoid duplicated code) if there is only one input format (or the XML or the Lua table).

Agree. We should discuss better about this.

The other formats should be translated to it.

One motivation of this work is integrate the DietNCL (internally use a LuaTable format) into ginga. It may enable do XML EDTV -> LuaTable RAW (from DietNCL) -> ExecutionModel.

@robertogerson
Copy link
Collaborator

robertogerson commented Jan 10, 2018

To the tests generation, maybe, a simple LuaTable to XML convertion such as [1] could help.

[1] https://gist.github.com/robertogerson/eaca97e44dba8aad48f8cbdeb8cb1f76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants