淡江大學機構典藏:Item 987654321/34136
English  |  正體中文  |  简体中文  |  全文笔数/总笔数 : 64176/96941 (66%)
造访人次 : 9105680      在线人数 : 12844
RC Version 7.0 © Powered By DSPACE, MIT. Enhanced by NTU Library & TKU Library IR team.
搜寻范围 查询小技巧:
  • 您可在西文检索词汇前后加上"双引号",以获取较精准的检索结果
  • 若欲以作者姓名搜寻,建议至进阶搜寻限定作者字段,可获得较完整数据
  • 进阶搜寻


    jsp.display-item.identifier=請使用永久網址來引用或連結此文件: https://tkuir.lib.tku.edu.tw/dspace/handle/987654321/34136


    题名: Java語法樹與直譯機制
    其它题名: Syntax tree and interpreting mechanism for Java language
    作者: 郭肇安;Kuo, Chao-an
    贡献者: 淡江大學資訊管理學系碩士班
    廖賀田;Liaw, Heh-tyan
    关键词: Java;語法樹;直譯器;Java;Syntax tree;Interpreter
    日期: 2006
    上传时间: 2010-01-11 04:57:37 (UTC+8)
    摘要: 在傳統Java 程式的環境下,程式員若需執行Java 程式,都必須將原始碼編譯為位元組碼,再交由Java 虛擬機解譯執行。編譯後的位元組碼只是模擬原始碼的一種虛擬機器語言,與原始碼之間並沒有任何先天的關連性。

    本論文提出對Java 語言的直譯機制,透過此機制我們不需將原始碼編譯為位元組碼,而是將原始碼轉成語法樹結構。透過樹狀節點所配置的虛擬函數,以遞迴呼叫直接執行原始碼的語意。

    由於本直譯機制是採用遞迴呼叫的方式來完成,在遇到return 敘述、break 敘述與continue 敘述時,僅能跳離單一層級的遞迴呼叫,無法跳離多層級的遞迴呼叫。本論文採用try/catch 技術來突破因遞迴呼叫導致return 敘述、break 敘述與continue 敘述無法脫離深層遞迴的問題。

    在進行再造工程時,若採用Java 原始碼轉為語法樹結構,可利用語法樹的樹狀運動來完成再造工程。
    In the Java environment, source codes are compiled into bytecodes and executed by the Java Virtual Machine. Bytecodes are opcodes for Java Virtual Machine that simulates source codes. There is no significant relationship between Java source codes and bytecodes.

    This thesis proposed an interpreting mechanism for Java language. Without compiling source codes into bytecodes, a syntax tree is presented. The source codes are parsed into syntax tree and executed through virtual functions and recursive calls.

    The interpreting mechanism executes codes through massive recursive calls. When executing statements such as return, break, or continue, the control flow should be returned to specific ancestor, and it can not be done by simplex recursive call. This problem is solved by adopting try/catch mechanism.

    The Syntax tree and interpreting mechanism proposed in the thesis provides an infrastructure for software developing and reengineering.
    显示于类别:[資訊管理學系暨研究所] 學位論文

    文件中的档案:

    档案 大小格式浏览次数
    0KbUnknown645检视/开启

    在機構典藏中所有的数据项都受到原著作权保护.

    TAIR相关文章

    DSpace Software Copyright © 2002-2004  MIT &  Hewlett-Packard  /   Enhanced by   NTU Library & TKU Library IR teams. Copyright ©   - 回馈