亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rx7.clp

?? 介紹ANTLR使用的JAVA程序例子
?? CLP
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
;;###################################################
;;###################################################
;;                  RX7.CLP                        ##
;;    Mazda RX-7 rotary engine troubleshooter.     ##
;;                                                 ##
;;###################################################
;;###################################################
;;
;; Operating instructions:
;;   1.) Execute the CLIPS interpreter.
;;   2.) From the CLIPS prompt, type (load "rx7.clp").
;;   3.) Type (reset) and then (run) to execute the program.
;;
;;**********************************
;; Set up initial facts for testing.
;;**********************************
;;
(deffacts init
  (troubleshoot-mode engine)
  (menu-level engine main))
;;
;;****************************************************
;; Clear the screen and present the main menu.       *
;;                                                   *
;; Variables:                                        *
;;   ?ml - used for retracting the menu level.       *
;;   ?response - used for binding in the users input.*
;;****************************************************
;;
(defrule main-menu
  (declare (salience 500))
  (troubleshoot-mode engine)
  ?ml <- (menu-level engine main)
=>
  (retract ?ml)
;;** print 25 crlf's to clear screen **
  (printout t crlf crlf crlf)
  (printout t
  "        Choose one of the problem areas listed below" crlf
  "        by typing a letter and pressing the return key." crlf crlf
  "                  1.) Difficult starting." crlf
  "                  2.) Poor idling." crlf
  "                  3.) Insufficient power." crlf
  "                  4.) Abnormal combustion." crlf
  "                  5.) Excessive oil consumption." crlf
  "                  6.) Engine noise." crlf
  "                  7.) Quit the program." crlf crlf
  "        Choice: " )
  (bind ?response (read))
  (assert (problem-response engine ?response))
  (printout t crlf))
;;
;;
;;***************************************
;; If the user enters a response of 7   *
;;    from the main menu,               *
;; Then print ending message and clear  *
;;      the fact base.                  *
;;***************************************
(defrule user-quits
  (troubleshoot-mode engine)
  (problem-response engine 7)
=>
  (printout t "You have QUIT the program." crlf)
  (halt))
;;
;;*******************************
;; If the user selects 1        *
;; Then assert that the problem *
;;      is DIFFICULT STARTING.  *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*******************************
(defrule difficult-starting
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 1)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-1))
  (assert (problem engine difficult-starting)))
;;
;;*******************************
;; If the user selects 2        *
;; Then assert that the problem *
;;      is POOR IDLING.         *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*******************************
(defrule poor-idling
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 2)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-1))
  (assert (problem engine poor-idling)))
;;
;;*******************************
;; If the user selects 3        *
;; Then assert that the problem *
;;      is INSUFFICIENT POWER.  *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*******************************
(defrule insufficient-power
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 3)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-1))
  (assert (problem engine insufficient-power)))
;;
;;*******************************
;; If the user selects 4        *
;; Then assert that the problem *
;;      is ABNORMAL COMBUSTION. *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*******************************
(defrule abnormal-combustion
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 4)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-2))
  (assert (problem engine abnormal-combustion)))
;;
;;*************************************
;; If the user selects 5              *
;; Then assert that the problem       *
;;      is EXCESSIVE OIL CONSUMPTION. *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*************************************
(defrule excessive-oil-consumption
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 5)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-3))
  (assert (problem engine excessive-oil-consumption)))
;;
;;*******************************
;; If the user selects 6        *
;; Then assert that the problem *
;;      is ENGINE NOISE.        *
;;                              *
;; Variables:                   *
;;   ?pr - for retracting the   *
;;         numeric problem      *
;;         response.            *
;;*******************************
(defrule engine-noise
  (troubleshoot-mode engine)
  ?pr <- (problem-response engine 6)
=>
  (retract ?pr)
  (assert (menu-level engine possible-causes-1-4))
  (assert (problem engine engine-noise)))
;;
;;********************************************
;; Clear the screen and present the possible *
;; causes for DIFFICULT STARTING, or         *
;; POOR IDLING, or INSUFFICIENT POWER        *
;; depending on the variable ?problem.       *
;;                                           *
;; Variables:                                *
;;   ?problem - the problem selected by the  *
;;              user.                        *
;;   ?response - used for binding in the     *
;;               users input.                *
;;********************************************
;;
(defrule possible-causes-1-1
  (troubleshoot-mode engine)
  (menu-level engine possible-causes-1-1)
  (problem engine ?problem&difficult-starting|poor-idling|insufficient-power)
=>
  (printout t crlf crlf crlf)
  (printout t
  "        You selected " ?problem " as the problem you would" crlf
  "        like to solve.  If you change your mind and would like" crlf
  "        to review the main menu, press 0 now, otherwise select one" crlf
  "        of the possible causes of " ?problem " listed below."
            crlf crlf
  "               0.) Return to main menu." crlf
  "               1.) Insufficient compression." crlf
  "               2.) Malfunction of fuel system." crlf
  "               3.) Malfunction of electrical system." crlf crlf
  "        Choice: " )
  (bind ?response (read))
  (assert (possible-cause ?problem ?response))
  (printout t crlf))
;;
;;********************************************
;; Clear the screen and present the possible *
;; causes for ABNORMAL COMBUSTION.           *
;;                                           *
;; Variables:                                *
;;   ?response - used for binding in the     *
;;               users response.             *
;;********************************************
(defrule possible-causes-1-2
  (troubleshoot-mode engine)
  (menu-level engine possible-causes-1-2)
  (problem engine abnormal-combustion)
=>
  (printout t crlf crlf crlf)
  (printout t
  "        You selected abnormal-combustion as the problem you would" crlf
  "        like to solve.  If you change your mind and would like"    crlf
  "        to review the main menu, press 0 now, otherwise select one" crlf
  "        of the possible causes of abnormal-combustion listed below." 
  crlf crlf
  "                0.) Return to main menu." crlf
  "                1.) Malfunction in combustion chamber." crlf
  "                2.) Malfunction of fuel system." crlf
  "                3.) Malfunction of ignition system." crlf
  "        Choice: ")
  (bind ?response (read))
  (assert (possible-cause abnormal-combustion ?response))
  (printout t crlf))
;;
;;********************************************
;; Clear the screen and present the possible *
;; causes for EXCESSIVE OIL CONSUMPTION.     *
;;                                           *
;; Variables:                                *
;;   ?response - used for binding in the     *
;;               users response.             *
;;********************************************
(defrule possible-causes-1-3
  (troubleshoot-mode engine)
  (menu-level engine possible-causes-1-3)
  (problem engine excessive-oil-consumption)
=>
  (printout t crlf crlf crlf)
  (printout t
  "        You selected excessive-oil-consumption as the problem you" crlf
  "        would like to solve.  If you change your mind and would like" crlf
  "        to review the main menu, press 0 now, otherwise select one" crlf
  "        of the possible causes of excessive-oil-consumption listed below." 
  crlf crlf
  "                0.) Return to main menu." crlf
  "                1.) Leakage into combustion chamber." crlf
  "                2.) Leakage into coolant passages." crlf
  "                3.) Leakage to outside of engine." crlf
  "                4.) Malfunction of lubricating system." crlf
  "        Choice: ")
  (bind ?response (read))
  (assert (possible-cause excessive-oil-consumption ?response))
  (printout t crlf))
;;
;;********************************************
;; Clear the screen and present the possible *
;; causes for ENGINE NOISE.                  *
;;                                           *
;; Variables:                                *
;;   ?response - used for binding in the     *
;;               users response.             *
;;********************************************
(defrule possible-causes-1-4
  (troubleshoot-mode engine)
  (menu-level engine possible-causes-1-4)
  (problem engine engine-noise)
=>
  (printout t crlf crlf crlf)
  (printout t
  "        You selected engine-noise as the problem you would like" crlf
  "        to solve.  If you change your mind and would like to" crlf
  "        review the main menu, press 0 now, otherwise select one" crlf
  "        of the possible causes of engine-noise listed below." 
  crlf crlf

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆成人精品| 欧美视频三区在线播放| caoporen国产精品视频| 欧美日韩1234| 国产精品色哟哟网站| 蜜臀99久久精品久久久久久软件| 成人av电影在线网| 日韩欧美综合一区| 亚洲午夜三级在线| av在线不卡网| 久久综合九色综合97婷婷女人| 一区二区三区在线视频播放| 国产精品乡下勾搭老头1| 国产亚洲综合性久久久影院| 亚洲成av人**亚洲成av**| 丁香激情综合国产| 久久天堂av综合合色蜜桃网| 日韩精品五月天| 欧美性一区二区| 亚洲欧洲制服丝袜| av亚洲产国偷v产偷v自拍| www精品美女久久久tv| 免费成人小视频| 6080日韩午夜伦伦午夜伦| 亚洲一区二区三区爽爽爽爽爽| 99久久亚洲一区二区三区青草| 久久综合久色欧美综合狠狠| 免费在线成人网| 欧美一区二区三区在线观看视频 | 亚洲最新在线观看| 99九九99九九九视频精品| 国产精品网友自拍| 成人午夜免费av| 国产精品日日摸夜夜摸av| 从欧美一区二区三区| 欧美国产日韩亚洲一区| 成人在线视频一区二区| 国产精品久久久久久久第一福利| 国产91精品一区二区麻豆网站| 久久久久久久电影| 成人午夜电影久久影院| 国产精品久久久久aaaa樱花| 99天天综合性| 一区二区三区成人| 制服丝袜av成人在线看| 免费人成精品欧美精品| 欧美大白屁股肥臀xxxxxx| 激情深爱一区二区| 欧美激情中文不卡| 91色porny在线视频| 亚洲自拍偷拍麻豆| 欧美久久久影院| 国模少妇一区二区三区| 国产色综合久久| 一本大道av伊人久久综合| 亚洲高清免费在线| 日韩色视频在线观看| 国产mv日韩mv欧美| 亚洲男人天堂av| 欧美一级高清大全免费观看| 精品一区二区免费| 国产精品每日更新在线播放网址| 97se狠狠狠综合亚洲狠狠| 亚洲1区2区3区4区| 国产午夜一区二区三区| 一本久久综合亚洲鲁鲁五月天 | 麻豆国产精品一区二区三区| 久久久一区二区三区捆绑**| 久久这里只有精品6| 高清不卡一区二区在线| 一区二区三区精品在线观看| 日韩女优制服丝袜电影| 成人aaaa免费全部观看| 亚洲va中文字幕| 国产欧美中文在线| 欧美日韩在线三级| 成人午夜在线免费| 日韩精品欧美精品| 亚洲美女视频在线| 精品久久五月天| 在线观看免费一区| 国产精品一级片| 日韩精品一级二级| 亚洲欧美色综合| 精品国产乱码久久久久久浪潮| 日本道精品一区二区三区| 国内精品在线播放| 亚洲成人一区二区在线观看| ●精品国产综合乱码久久久久| 日韩美女视频一区二区在线观看| 色综合久久久久综合体桃花网| 国内久久精品视频| 日本不卡一区二区三区| 曰韩精品一区二区| 国产日韩三级在线| 日韩精品一区二区三区swag| 欧美日韩一级视频| 91免费精品国自产拍在线不卡| 国模少妇一区二区三区| 青娱乐精品视频| 日韩精品电影在线| 亚洲va欧美va人人爽午夜| 亚洲欧美另类久久久精品| 国产日韩欧美在线一区| 26uuu国产一区二区三区| 日韩视频国产视频| 日韩免费一区二区三区在线播放| 欧美日韩一区在线| 欧美日韩三级视频| 欧美日韩一区二区三区在线看| 99久久精品一区| av一本久道久久综合久久鬼色| 国产露脸91国语对白| 韩国精品主播一区二区在线观看 | 中文字幕综合网| 国产精品五月天| 国产欧美1区2区3区| 久久综合九色综合欧美亚洲| 欧美tickling网站挠脚心| 91精品欧美久久久久久动漫 | 99re热视频精品| 成人黄色在线看| 99久久国产综合色|国产精品| 成人av集中营| 91免费视频观看| 在线免费观看日韩欧美| 欧美午夜影院一区| 91精品国产品国语在线不卡| 欧美肥妇毛茸茸| 日韩一二在线观看| 久久精品欧美一区二区三区不卡 | 国产盗摄精品一区二区三区在线| 国产剧情在线观看一区二区 | 麻豆中文一区二区| 国产精品伊人色| aaa欧美日韩| 欧美亚洲综合网| 91精品国产欧美一区二区| 久久综合色之久久综合| 国产精品久久午夜| 亚洲成人激情综合网| 免费成人在线网站| 成人精品视频一区二区三区| 99精品偷自拍| 91精品国产一区二区人妖| 久久亚洲综合色一区二区三区| 国产精品视频yy9299一区| 亚洲第一在线综合网站| 国内精品久久久久影院色| 91玉足脚交白嫩脚丫在线播放| 欧美伦理视频网站| 国产丝袜在线精品| 亚洲永久精品大片| 国产精品亚洲第一| 欧美日韩一区二区在线观看 | 91精品国产福利在线观看| 久久精品亚洲麻豆av一区二区 | 91国偷自产一区二区使用方法| 91精品国产综合久久香蕉麻豆| 精品成人在线观看| 亚洲国产精品一区二区久久| 精品一区二区三区在线播放 | 精品国产乱码久久久久久牛牛| 国产精品电影一区二区| 午夜日韩在线观看| 成人黄色免费短视频| 日韩一区二区三区在线视频| 国产精品国产三级国产aⅴ原创| 日韩av一区二| 色综合久久久久| 国产亚洲欧美日韩日本| 午夜视频一区二区| 色综合久久88色综合天天 | 6080yy午夜一二三区久久| 久久久久久久精| 蜜臀91精品一区二区三区| 欧美亚洲尤物久久| 18成人在线观看| 粉嫩在线一区二区三区视频| 91精品国产综合久久精品性色| 亚洲欧洲国产专区| 国产mv日韩mv欧美| www国产精品av| 久久精品国产精品青草| 欧美在线一区二区三区| 最新日韩av在线| 成人黄色777网| 欧美精品一区二区三区蜜桃 | 有坂深雪av一区二区精品| 国产精品亚洲专一区二区三区| 欧美裸体bbwbbwbbw| 亚洲综合自拍偷拍| 色综合咪咪久久| 国产宾馆实践打屁股91| 欧美精品一区二| 久久99深爱久久99精品| 欧美va在线播放| 国产一区二区三区在线观看精品 | 热久久国产精品| 欧美久久一区二区|