J4

Previous Articles     Next Articles

Automatic Generation of Semantic Parser for Extended Grammar

WANG Sheng-jun, GUO De-gui, JIN Cheng-zhi   

  1. (College of Computer Science and Technology, Jilin University, Changchun 130012, China)
  • Received:2005-01-10 Revised:1900-01-01 Online:2005-11-26 Published:2005-11-26
  • Contact: WANG Sheng-jun

Abstract: On the basis of Earley parsing extended grammars, this paper gives an automatic generation algorithm of a semantic parser for EBNF. Given an extended grammar with embedded semantic routines and an input string, the algorithm outputs the corresponding semantic parser. With the execution of these semantic routines, some work such as type checking, intermediate code generation and optimization can be done, which makes the parsing algorithm

Key words: Earley parsing, extended grammar, operator state machine, semantic routine, parser

CLC Number: 

  • TP301