200951814 九、發明說明: 【發明所屬之技術領域】200951814 IX. Description of the invention: [Technical field to which the invention belongs]
Autolisp是電腦輔助製圖軟體Autocad開放架構下的程式設計語言。 匕月匕客戶化(customize) Autocad的工作環境,也能設計(pr〇graming)自動 化的製圖流程。使得通用性(general purpose)的Aut〇cad能化身為土木、 建築、化工、機械等各行各業的專用製圖工具。 【先前技術】Autolisp is a programming language for the computer-aided graphics software Autocad open architecture.匕月匕匕customizes Autocad's work environment and can also design (pr〇graming) automated charting process. The general purpose of the Aut〇cad can be transformed into a special drawing tool for civil engineering, construction, chemical, machinery and other industries. [Prior Art]
Q % 雖然Autolisp程式語言提供了使用者自行設計與規劃Aut〇cad工作方 式的能力。但是Autolisp卻不具有現代程式語言軟體普遍具備的整合式 (integrated)工作環境及trace(追蹤執行)程絲行過程的除錯功能;再加 上Autolisp語言所特有的多重小括弧的特性,使得A福i印程式設計者 既要計數祕弧錄崎健,又要查看料區段麵路細邏輯上是否 正確?在系統發展與除錯過程上異常辛苦。Q % Although the Autolisp programming language provides the user with the ability to design and plan the Aut〇cad work style. However, Autolisp does not have the integrated working environment and the debugging function of trace (travel execution) process in modern programming language software. In addition, the characteristics of multiple small brackets unique to Autolisp language make A Fujifilm printers need to count the secret arc record, and also check whether the material section is logically correct. It is very hard in the process of system development and debugging.
AutoCAD晚近版本雖扣「顏色」區分心⑽㈣字但在程式區 塊辨認上财如本發明以「框魏住程式區塊段落」來崎楚明白。 【發明内容】 本發明提出—種鮮纽且迅速的整合式除錯處理,顧A_isp程 式的一紐驗如小細咖咐義,程《賊_重疊等等。 並能追縱赋㈣錄繼;概㈣爾析、小括孤 配對、針對「程«塊標上框線」,其絲絲式設計者以目視姆看出那 裡錯誤,能不辆式中眼花魏的眾多小括弧所苦。 200951814 【實施方式】 -種針對—ρ程式語言的除錯系統。請參閱第一圖所示,係包括 除錯程式MSwave-exe」的執行’針對除錯對象例如_.isp程式進 ^執行後’產生「保留字拼錯」檔「左右小括弧不平衡」細細 及最後成果「程式區塊以框線標示」檔atextgrd。 藉由atextfim、atextxnt、尤其atextgrd,讓Am〇Usp程式設計者可在 很短時間峨賴原有程式atexUsp巾的「㈣字·、左右小括孤數目不 對稱、程式區塊配對錯誤」等等錯誤,迅速予以更正。 【圖式簡單說明】 一.本Autolisp debugger不是告訴你何處少了括弧(這種作法可能的解有 多個,也不準),是利用框線幫你認^某些敘述的小括弧形成—個區塊,是否 合理?由你(自己的智慧)去決定程式的對錯. 一·有利於程式判讀的良好的Autolisp程式書寫習慣. -程式區塊頭尾兩列要由同-垂直行(ident)寫起使左右凹凸對應,方 便程式閱讀 一程式區塊末尾列要標註對應的開頭列,例如:「);setq」,表示此列尾 是「(setq」列頭所對應。 三·追尋程式括弧配對錯誤的途徑應由上往下由内層向外層找尋遺漏的左 或右括孤(因為本除錯系統邏輯亦如此做).找到一個錯後不要急著找第二 個錯,應先更正完,重新除錯得到新除錯框線後,再找(因為上面的錯有可 能影響底下各列的框線)下個錯誤。 四.本發明,程式錯誤的部份多會「區域化」,不會影響到別處正確的程式 區塊 【主要元件符號說明】 元件(A) ld3wave.exe除錯主程式 元件(a)產生保留字拼錯標atext.ftjn 元件(b)產生「左右括弧數」標atext.cnt 元件(c)產生程式區塊框線檐atext.grdAlthough the recent version of AutoCAD is deducted from the "color" to distinguish the heart (10) (four) words, but in the program block identification, as the invention is "framed Wei block program block paragraph" to understand. SUMMARY OF THE INVENTION The present invention proposes a kind of fresh and rapid integrated debugging processing, and the A_isp method is like a small cookie, and the process is "thief_overlap and so on." And can be traced to Fu (4) recorded; general (four) analysis, small and solitary pairing, for the "Cheng «block mark on the frame line", its silk designer to see the error there, can not be in the middle of the eye Wei's many small brackets suffer. 200951814 [Embodiment] - A debugging system for the -ρ programming language. Please refer to the first figure, including the execution of the debugging program MSwave-exe. 'For the debugging object, for example, the _.isp program is executed ^, the generated "reserved word misspelling" file "left and right small bracket imbalance" is fine. The final and final result "program block is marked by a frame" file atextgrd. With atextfim, atextxnt, and especially atextgrd, the Am〇Usp programmer can rely on the "(4) word, the asymmetry of the left and right small orphans, the incorrect block pairing of the program block, etc." in a short time. Errors and correct them quickly. [Simple description of the diagram] 1. This Autolisp debugger does not tell you where the brackets are missing (there are more than one possible solution for this method, and it is not allowed). It is to use the frame line to help you recognize the formation of some brackets. Is it reasonable to be a block? It is up to you (their wisdom) to decide the right or wrong of the program. 1. Good Autolisp programming habits that are good for program interpretation. - The first two columns of the program block should be written by the same-vertical line (ident) to make the left and right bumps correspond. For the program to read the end of a program block, you need to mark the corresponding first column, for example: "); setq", which means that the end of the column is "(setq) column header. 3. The way to track the mismatch of the brackets should be Look up and down from the inner layer to the outer layer to find missing left or right orphans (because this debugging system logic also does this). After finding a mistake, don't rush to find the second mistake, you should correct it first, then re-debug to get new After correcting the line, look for the next error (because the above error may affect the frame of the bottom column). 4. In this invention, the part of the program error will be "regionalized" and will not affect the other place. Program block [Major component symbol description] Component (A) ld3wave.exe debug main program component (a) generates reserved word misspelling atext.ftjn component (b) produces "left and right brackets" tag atext.cnt component ( c) Generate a block block line 檐atext. Grd