Skip to content

Commit 9fc0791

Browse files
committed
tiny fixes
1 parent 2ee877f commit 9fc0791

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Auto/Parser/SMTSexp.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ local instance : Hashable Char := ⟨fun c => hash c.val⟩
136136
This is because wee rely on the property that:
137137
For each lexicon `l` with a white space at position `p`, the
138138
part of `l` before `p` will always be identified as `incomplete`
139-
by `ERE.ADFALexEagerL SMTSexp.lexiconADFA`, and never as `done`.
139+
by `ERE.ADFALexEagerL SMT.lexiconADFA`, and never as `done`.
140140
-/
141141
def parseSexp (s : String) (p : String.Pos.Raw) (partialResult : PartialResult) : ParseResult := Id.run <| do
142142
if p == s.rawEndPos then
@@ -165,7 +165,7 @@ def parseSexp (s : String) (p : String.Pos.Raw) (partialResult : PartialResult)
165165
return .incomplete ⟨0, "", pstk⟩ p
166166
match nextLexicon p lst with
167167
| ⟨.complete, matched, _, state⟩ =>
168-
-- A unique attribute should be returned, according to `SMTSexp.lexiconADFA`
168+
-- A unique attribute should be returned, according to `SMT.lexiconADFA`
169169
let [attr] := (SMT.lexiconADFA.getAttrs state).toList
170170
| return panic! s!"parseSexp :: Unexpected error"
171171
p := matched.stopPos
@@ -221,7 +221,7 @@ def longSexp : Nat → Sexp
221221
#eval testit (toString (longSexp 20)) ⟨0⟩ (print:=false)
222222
#eval testit "djn (abcde |fg| h (12 3) 0x50 34.4 (0b0 x2_& |🍉| \"dl\"\"\")) Not here" ⟨3⟩
223223
#eval testit "(abcde 0x" ⟨0⟩
224-
#eval IO.println <| Regex.ERE.ADFALexEagerL SMTSexp.lexiconADFA "abc".toSubstring {}
224+
#eval IO.println <| Regex.ERE.ADFALexEagerL SMT.lexiconADFA "abc".toSubstring {}
225225
226226
def testResume : IO Unit := do
227227
let strs := ["(abcde\n", "|ab", "\nu\n", "|", "ua", "ab)"]

0 commit comments

Comments
 (0)