Dynamic Integration of Foreign-Language Parsers into an NCL Player

  • Jorge P. Dodsworth PUC-Rio
  • Lucas de Macêdo Terças UFMA
  • Alan L.V. Guedes Puc-Rio
  • Guilherme F. Lima PUC-Rio
  • Carlos de Salles Soares Neto UFMA
  • Sérgio Colcher PUC-Rio

Resumo


We describe how we modified an NCL player to accept as input, in addition to NCL documents, Lua scripts. These Lua scripts evaluate to a table in a particular format, called NCL-ltab, which is a Lua table encoding of the NCL player's internal model. One advantage of our modifications is that they allow the NCL parsing to occur in the Lua script, i.e., outside the formatter but integrated in its execution flow. The same applies for parsers of dialects of NCL or similar languages. Another advantage is that new parsers can be plugged dynamically into the formatter (if they are written in Lua or can be called from Lua). In this paper, we detail the internal model of the NCL player we are using and the NCL-ltab input format. To evaluate our proposal, we present two parser-integration use cases, one for NCL itself, using the DietNCL parsing toolkit, and another for sNCL, an alternative, user-friendlier syntax for NCL.
Palavras-chave: Document conversion, document parsing, NCL-ltab, DietNCL, sNCL
Publicado
16/10/2018
Como Citar

Selecione um Formato
DODSWORTH, Jorge P.; TERÇAS, Lucas de Macêdo; GUEDES, Alan L.V.; LIMA, Guilherme F.; SOARES NETO, Carlos de Salles; COLCHER, Sérgio. Dynamic Integration of Foreign-Language Parsers into an NCL Player. In: SIMPÓSIO BRASILEIRO DE SISTEMAS MULTIMÍDIA E WEB (WEBMEDIA), 24. , 2018, Salvador. Anais do XXIV Simpósio Brasileiro de Multimídia e Web. Porto Alegre: Sociedade Brasileira de Computação, oct. 2018 . p. 85-92.

Artigos mais lidos do(s) mesmo(s) autor(es)

1 2 > >>