While in a string grammar the only possible spatial relation is the string concatenation, in a positional grammar other spatial relations can be defined and then used for describing high dimensional languages. We characterize a new class of positional grammars, the extended pLALR grammars, which can be translated into traditional LALR context free grammars with positional actions. A positional action is a procedure implementing a spatial relation. In this way, the parser for an extended pLALR language can be generated automatically by the tool Yacc with no more effort. Moreover, we show that the class of extended pLALR grammars properly contains the class of pSLR grammars for which a Yacc implementation has already been given.

Automatic parser generation for pictorial languages

Costagliola G.;Polese G.;Tortora G.;Tucci M.
1993-01-01

Abstract

While in a string grammar the only possible spatial relation is the string concatenation, in a positional grammar other spatial relations can be defined and then used for describing high dimensional languages. We characterize a new class of positional grammars, the extended pLALR grammars, which can be translated into traditional LALR context free grammars with positional actions. A positional action is a procedure implementing a spatial relation. In this way, the parser for an extended pLALR language can be generated automatically by the tool Yacc with no more effort. Moreover, we show that the class of extended pLALR grammars properly contains the class of pSLR grammars for which a Yacc implementation has already been given.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11386/4865942
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 7
  • ???jsp.display-item.citation.isi??? ND
social impact