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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rx7.clp

?? 介紹ANTLR使用的JAVA程序例子
?? CLP
?? 第 1 頁 / 共 4 頁
字號:
;;###################################################
;;###################################################
;;                  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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人美女视频在线观看| 午夜精品久久久| 麻豆精品一二三| 成人黄色软件下载| 日韩欧美国产电影| 一区二区三区在线观看视频| 国产精品66部| 88在线观看91蜜桃国自产| 国产精品丝袜91| 蜜臀99久久精品久久久久久软件 | 国产精品免费免费| 蜜桃视频免费观看一区| 在线精品视频一区二区| 日本一区二区免费在线| 美女网站色91| 欧美美女网站色| 亚洲自拍偷拍九九九| 本田岬高潮一区二区三区| 久久天堂av综合合色蜜桃网| 免费精品99久久国产综合精品| 91国偷自产一区二区使用方法| 国产精品无圣光一区二区| 国产中文字幕一区| 日韩三级在线观看| 日产欧产美韩系列久久99| 欧美色手机在线观看| 亚洲老司机在线| 91色乱码一区二区三区| 国产精品免费aⅴ片在线观看| 国产一区在线看| 精品国产a毛片| 久久99国产精品麻豆| 日韩精品中文字幕一区二区三区| 天堂久久久久va久久久久| 欧美亚洲日本一区| 亚洲综合免费观看高清完整版在线 | 亚洲天堂av一区| 粉嫩久久99精品久久久久久夜| 亚洲精品一区二区三区福利| 久久国产精品露脸对白| 日韩欧美一区在线| 乱一区二区av| 欧美一级二级三级蜜桃| 免费精品视频最新在线| 欧美v国产在线一区二区三区| 日本美女一区二区三区视频| 91精品国产综合久久国产大片| 日韩精品欧美精品| 日韩免费高清电影| 国产又粗又猛又爽又黄91精品| 久久视频一区二区| 福利电影一区二区| |精品福利一区二区三区| 91麻豆福利精品推荐| 亚洲视频一二三| 欧美自拍偷拍午夜视频| 午夜一区二区三区在线观看| 制服丝袜亚洲播放| 精品一区二区三区在线视频| 久久人人爽人人爽| 成人午夜视频免费看| 亚洲人成在线播放网站岛国| 欧美中文字幕一区二区三区亚洲| 视频在线观看国产精品| 日韩免费一区二区三区在线播放| 国产主播一区二区三区| 中文字幕五月欧美| 欧美性videosxxxxx| 奇米色777欧美一区二区| 2021中文字幕一区亚洲| 成人高清视频免费观看| 一区二区三区不卡视频| 欧美一区午夜视频在线观看| 国产一区免费电影| 综合久久给合久久狠狠狠97色| 欧美调教femdomvk| 九九精品视频在线看| 国产精品狼人久久影院观看方式| 日本精品裸体写真集在线观看 | 亚洲色欲色欲www| 欧美午夜精品久久久久久孕妇 | 亚洲国产视频a| 日韩欧美你懂的| 波多野结衣一区二区三区 | 国产亚洲一二三区| 在线观看日韩一区| 久久99精品国产.久久久久久| 中文字幕色av一区二区三区| 欧美三级日韩三级国产三级| 狠狠狠色丁香婷婷综合激情 | 国产精品久久福利| 欧美性一级生活| 国产一区欧美二区| 亚洲一区二区三区在线播放| 精品少妇一区二区| 日本高清免费不卡视频| 久久成人精品无人区| 亚洲精品v日韩精品| 精品国精品自拍自在线| 日本高清不卡一区| 国产成人福利片| 日日夜夜精品免费视频| 国产精品视频免费| 日韩欧美一卡二卡| 色久综合一二码| 国产精一品亚洲二区在线视频| 亚洲尤物在线视频观看| 国产亲近乱来精品视频| 欧美乱妇20p| 91免费版pro下载短视频| 激情图区综合网| 亚洲一区成人在线| 中文字幕av在线一区二区三区| 欧美一区二区视频在线观看 | 国产精一品亚洲二区在线视频| 亚洲chinese男男1069| 国产精品免费aⅴ片在线观看| 日韩三级在线免费观看| 欧美色欧美亚洲另类二区| kk眼镜猥琐国模调教系列一区二区| 奇米精品一区二区三区四区| 一区二区三区日韩精品| 中文av一区特黄| 久久综合九色综合97_久久久| 欧美久久婷婷综合色| 91麻豆国产福利在线观看| 高清日韩电视剧大全免费| 久久精工是国产品牌吗| 亚洲成av人**亚洲成av**| 亚洲人快播电影网| 国产精品色在线观看| 2023国产精品| 欧美精品一区二区三区一线天视频| 欧美三级电影在线看| 色综合婷婷久久| av午夜一区麻豆| 高清不卡一区二区在线| 韩国av一区二区| 麻豆久久久久久| 日本中文字幕不卡| 亚洲成人在线网站| 亚洲人一二三区| 中文字幕日韩一区二区| 国产精品网站导航| 欧美激情中文不卡| 国产日韩av一区二区| 久久久久久一二三区| 精品人在线二区三区| 91精品国产欧美一区二区18| 欧美日韩一区不卡| 欧美日韩一区不卡| 777午夜精品视频在线播放| 欧美三级日韩三级| 欧美人妖巨大在线| 3d动漫精品啪啪一区二区竹菊| 欧美人与禽zozo性伦| 欧美一区二区福利在线| 日韩一区二区三区高清免费看看| 欧美一级午夜免费电影| 日韩欧美一区二区久久婷婷| 日韩精品在线一区| 26uuu精品一区二区三区四区在线| 欧美一二区视频| 精品少妇一区二区三区在线视频| 欧美电影免费观看高清完整版 | 精品视频一区二区不卡| 欧美在线制服丝袜| 欧美日韩不卡一区二区| 91麻豆精品国产91久久久久| 欧美一区二区三区白人| www国产成人免费观看视频 深夜成人网| 久久久久久久久久久久久女国产乱 | 色综合久久99| 91视视频在线直接观看在线看网页在线看| www.欧美日韩| 91麻豆文化传媒在线观看| 91久久精品国产91性色tv| 欧美在线啊v一区| 欧美老肥妇做.爰bbww| 日韩一区二区精品| 2020国产精品| 国产精品久久久久久久久搜平片| 亚洲免费观看高清在线观看| 亚洲第一二三四区| 久久爱另类一区二区小说| 国产69精品一区二区亚洲孕妇| 色综合久久九月婷婷色综合| 欧美夫妻性生活| 久久久久久久综合| 亚洲视频图片小说| 免费在线观看视频一区| 国产精品一区在线观看你懂的| 99精品视频在线免费观看| 欧美午夜精品免费| 久久一区二区视频| 成人免费一区二区三区视频| 五月婷婷综合网| 国产精品香蕉一区二区三区| 色综合久久综合| 日韩欧美激情在线|