1 (import 'com.interrupt.bookkeeping.cc.analysis.DepthFirstAdapter)
2 (import 'com.interrupt.bookkeeping.cc.parser.Parser)
3 (import 'com.interrupt.bookkeeping.cc.lexer.Lexer)
4 (import 'java.io.PushbackReader)
5 (import 'java.io.InputStreamReader)
8 (defn get-depth-adapter []
10 (proxy [DepthFirstAdapter] []
12 (caseALoginCommand3 [node]
13 (println (str "caseALoginCommand3: " node))
15 (caseAPrintCommand6 [node]
16 (println (str "caseAPrintCommand6: " node))
22 (Parser. (Lexer. (PushbackReader. (InputStreamReader. java.lang.System/in) 1024)))
25 (defn demo-bkell [handler]
27 ;;(def tree (.parse (get-parser)))
28 ;;(. tree apply handler )
29 (. (.parse (get-parser))
33 (demo-bkell (get-depth-adapter))