Journal: | Computación y sistemas |
Database: | |
System number: | 000560375 |
ISSN: | 1405-5546 |
Authors: | Niitsuma, Hirotaka1 |
Institutions: | 1Okayama University, Graduate School of Natural Science and Technology, Okayama, Chugoku. Japón |
Year: | 2018 |
Season: | Oct-Dic |
Volumen: | 22 |
Number: | 4 |
Pages: | 1395-1402 |
Country: | México |
Language: | Inglés |
English abstract | Recursive miniKanren is logic programming language which can deal infinite recursive data structure and a subset of the Scheme language. We define a pattern match macro which can use the same syntax of the match macro of the Scheme language using recursive miniKanren. The macro enables to write searching sub-list with a given pattern by only few line code. Using this property, we introduce techniques writing context-free grammar with our match macro. Unlike other specific paraphrasing tools, our technique can combine logical relations of miniKanren with a context-free grammar. We show the logical relations resolves the ambiguity of a grammar. |
Keyword: | Context-free grammars, Left recursion, Recursive miniKanren |
Full text: | Texto completo (Ver HTML) Texto completo (Ver PDF) |