File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 7777 (values ast-tree-1 ast-tree-2)))
7878
7979(defun get-abstract-sem-tree-from-string (str cur-file)
80- (abstract-sem-tree-gen (parser (lexer str)) :curr-file cur-file))
80+ (multiple-value-bind (res-lexems comments lex-errors)
81+ (lexer str)
82+ (when lex-errors
83+ (error " Lex errors !!! ~A " lex-errors))
84+ (when (> (hash-table-count comments) 0 )
85+ (cond ((= cur-file 1 )
86+ (setf *comment-table-1* comments))
87+ ((= cur-file 2 )
88+ (setf *comment-table-2* comments))
89+ (t (error " Error value of cur-file" ))))
90+ (abstract-sem-tree-gen (parser res-lexems) :curr-file cur-file)))
Original file line number Diff line number Diff line change 55 :diff-backend/lexer
66 :diff-backend/statistics )
77 (:export # :get-json-res
8- # :get-stats-res))
8+ # :get-stats-res
9+ # :get-json-comments))
910
1011(in-package :diff-backend/results-generator )
1112
You can’t perform that action at this time.
0 commit comments