The Research and Implementation of Embedded ECMA Interpreter
- Author
- ZhangJinBo
- Advisor
- ZhouJinLing
- School
- Hohai University
- Major
- Applied Computer Technology
- Classification
- TP368.1 Microprocessor
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 107
- Citations
- 1
Abstract
Network of embedded systems is the main direction of the current embedded systems development , as the representative of the Pocket PC , PDA, smart phones and other embedded devices, network functions , for example , Browse static pages can no longer meet the need for rapid development of information , Web network applications has become a new functional requirements of embedded products . Embedded devices to achieve Browse the Web , it will inevitably involve embedded browser to support for scripting languages ??. Commonly used Web page scripting language is JavaScript and JScript , both follow the ECMAScript specification . At present , people familiar with the PC Internet Explore browser and Netscape Navigator browsers have good support scripting language embedded platforms due to the performance of hardware , browser support Web page browsing has become possible . This paper studies follow the ECMAScript specification script language interpreter for embedded systems Web network functions are implemented to solve a technical problem . The first study analyzed the compiler technology , design the ECMA explain the overall program , which again explain the syntax - driven lexical analysis, symbol tables , syntax analysis, semantic analysis , code generation together . And comparative analysis of the implementation of the various symbol tables time and space overhead , asked the reserved words and variable names a unified treatment of the symbol table hash multi-table implementation and as reserved word processing design algorithm ; study lexical analysis theory and method , the automaton constructed lexical analysis ; details ES grammar written , discussed the table structure of predictive analysis to discuss the semantic analysis process semantics record data structure , intermediate code design and semantic routines . Then completed the implementation of the ECMA interpreter on the basis of the above analysis confirms the correctness of the generated intermediate code and auxiliary tools . Finally , analysis of the implementation of embedded in the ECMA interpreter of areas for improvement , proposed to complete implementation of the embedded Web browser technology needs to be studied . With the further improvement of the Pocket PC , PDA , smart phone hardware performance , the the embedded ECMA interpreter implemented in this article will have a certain application prospects .
Table of contents
Abstract 4-5
Abstract 5-8
first chapter 8-11
1.1 research purposes 8
1.2 technology background 8-9
1.3 The main research work and organizational structure 9-11
Chapter ECMA interpreter Architecture Design 11-15
2.1 ECMAScript specification describes 11
2.2 ECMA interpreter work program 11-12
2.3 ECMA interpreter over the program 12 - 13
2.4 Factors affecting the efficiency of the interpreter 13-14
2.4.1 symbol table with a stack of operation 13
2.4.2 Error Handling 13-14
2.5 portability 14
2.6 Chapter Summary 14-15
Chapter symbol table design 15-22 <br / > 3.1 Symbol Table to achieve strategic choices 15-16
3.1.1 unordered list 15
3.1.2 orderly table 15-16
3.1.3 binary search tree 16
3.1.4 hash table 16
3.2 symbol table hash function design 16-17
3.3 Hash Table conflict resolution 17-18
3.4 The information stored in the symbol table 18-21
3.5 Scope solve 21
3.6 Summary 21-22
Chapter lexical analyzer research and design 22-26
4.1 lexical analysis program research 22-23
4.2 Automata construction 23-25 ??
4.3 reserved word processing algorithm 25
4.4 Summary 25-26
Chapter ECMA syntactic and semantic analyzer Research and Design 26-38
5.1 parser 26-33
5.1.1 Syntax Analysis Method 26-27
5.1.2 Es grammar writing 27-28
5.1.3 to eliminate ambiguity and left recursion 28-30
5.1.4 FIRST and FOLLOW sets sets constructed 30-31 <br / > 5.1.4 Forecast analysis table creation 31-32
5.1.5 Syntax stack design 32-33
5.2 semantic analysis 33-35 <br / > 5.3 Semantic record structure design 35-36
5.4 semantic stack control 36-37
5.5 Chapter Summary 37-38
Chapter ECMA Interpreter achieve 38-47
6.1 ECMA interpreter initializes 38-39
6.2 lexical scanner to achieve 39-40
6.3 reserved words Match achieve 40-42
6.4 syntactic and semantic analyzer to achieve 42-44
6.5 interpreter functional verification 44-46
6.6 Summary 46-47
Chapter Summary and Outlook 47-49
7.1 Summary 47-48
7.2 Application Prospect 48-49
References 49-53
Appendix 53-61
1 ES grammar 53-57
2 if statement semantic routines source code 57-61
Thanks 61
Related dissertations
- Research on the Chinese Interface of Speech Based Book Query
- The Design and Implementation of an Arithmetic Expression Parsing Engine
- Using Lexical and Semantic Analysis for Ontology Integration
- Implementation and application of C++ general lexical, syntax analysis framework based on
- The Research of the Format "Zai X Buguo"
- Designing and Implementation of an Interpreter Based on SDG-HAZOP, Based on the Language Similar to C
- Statement Analysis of SQL Language and the Research of Database Security
- Study on Automated Testing Tool for GUI
- Interprocedural data flow analysis technology research
- The Construction of Complier for SQL--Basing on Linux Operating System
- OCCL Compiler for Linux
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- The Design and Implementation of source to source conversion of Fortran language
- Research on Method for Mining Software Security Fault Feature Pattern
- Research and Implementation of Filtration Systems Based on SQL Semamtics
- Research on Post-processing Techniques of Mathematical Formula Structural Analysis
- Keyword Extraction Based on Statistic and Syntactic Parsing
- The Automatic Marking Method of Script
- See "thou polysemous verbs from cognitive semantics" in
- Analysis of Legal Terminology of Hong Kong's Chinese/English Bilingual Legal Texts:a Lexicographical Perspective