计算机应用 ›› 2010, Vol. 30 ›› Issue (3): 612-614.

• 软件过程技术 • 上一篇    下一篇

球类比赛的脚本解释器的研究与实现

孙晶1,谭效辉2,赵会群1,陈磊1   

  1. 1. 北方工业大学
    2. 北方工业大学 信息工程学院
  • 收稿日期:2009-09-15 修回日期:2009-11-04 发布日期:2010-03-14 出版日期:2010-03-01
  • 通讯作者: 谭效辉

Research and implementation of ball games scenario interpreter

  • Received:2009-09-15 Revised:2009-11-04 Online:2010-03-14 Published:2010-03-01

摘要: 现今每个球类技战术分析系统(TTAS)都单独设计脚本解释器,这就造成了程序设计人员的重复劳动。针对这个问题,通过分析球类比赛特点,设计了一类球类比赛脚本描述语言的语法结构,并通过对脚本描述语言进行词法分析、语法分析和语义分析等,最终实现了这类球类比赛技战术分析系统的脚本解释器。目前,该解释器成功地应用在乒乓球、篮球和排球技战术分析系统中,同时也有效地解决了程序设计人员重复劳动的问题。

关键词: 脚本描述语言, 词法分析, 语法分析, 语义分析, 解释器

Abstract: Nowadays, every Technical and Tactical Analysis Systems (TTAS) for ball games needs to design its unique scenario interpreter, which results in a lot of wasted efforts of programmers. To solve this problem, the grammar of the scenario language was designed by analyzing the characteristics of ball games, and the scenario interpreter was finally realized through the analysis of scenario language lexicon, syntax and semantic. At present, it has been successfully applied in table tennis, basketball and volleyball TTAS; meanwhile, the problem of wasted effort has been resolved effectively.

Key words: scripts description language, lexical analysis, syntax analysis, semantic analysis, interpreter