File locations are now ranges.

This commit is contained in:
2025-10-10 16:26:03 -07:00
parent 6b9da23478
commit 2af6ef1c1b
11 changed files with 167 additions and 150 deletions

View File

@@ -9,6 +9,8 @@ import Lib.Syntax
import Lib.Token
import Lib.Types
-- TODO - anywhere this says getPos, we probably have to fix bounds? It is token sized though.
lazy : a. (Unit Parser a) Parser a
lazy pa = pa MkUnit
@@ -61,10 +63,8 @@ interp = do
token EndInterp
pure tm
interpString : Parser Raw
interpString = do
-- fc <- getPos
ignore $ token StartQuote
part <- term
parts <- many (stringLit <|> interp)