淡江大學機構典藏:Item 987654321/34136
English  |  正體中文  |  简体中文  |  全文筆數/總筆數 : 62830/95882 (66%)
造訪人次 : 4031538      線上人數 : 1007
RC Version 7.0 © Powered By DSPACE, MIT. Enhanced by NTU Library & TKU Library IR team.
搜尋範圍 查詢小技巧:
  • 您可在西文檢索詞彙前後加上"雙引號",以獲取較精準的檢索結果
  • 若欲以作者姓名搜尋,建議至進階搜尋限定作者欄位,可獲得較完整資料
  • 進階搜尋
    請使用永久網址來引用或連結此文件: 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.
    顯示於類別:[資訊管理學系暨研究所] 學位論文

    文件中的檔案:

    檔案 大小格式瀏覽次數
    0KbUnknown590檢視/開啟

    在機構典藏中所有的資料項目都受到原著作權保護.

    TAIR相關文章

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