Skip to content

Commit

Permalink
Factor out the parsing library
Browse files Browse the repository at this point in the history
  • Loading branch information
Russoul committed Aug 10, 2024
1 parent 756df32 commit 29a4854
Show file tree
Hide file tree
Showing 32 changed files with 62 additions and 1,387 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Just-a-Parser"]
path = Just-a-Parser
url = https://github.com/Russoul/Just-a-Parser.git
1 change: 1 addition & 0 deletions Just-a-Parser
Submodule Just-a-Parser added at 122010
10 changes: 1 addition & 9 deletions nova-api.ipkg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package nova-api

depends = contrib, just-a-monad
depends = contrib, just-a-monad, just-a-parser

modules =
Control.Monad.IOEither
Expand All @@ -11,7 +11,6 @@ modules =
, Data.AlternatingSnocList
, Data.AlternatingSnocList1
, Data.Interpolation
, Data.Location
, Data.Util

, Nova.Core.Context
Expand Down Expand Up @@ -60,11 +59,4 @@ modules =
, Solver.CommutativeMonoid.Quotation
, Solver.CommutativeMonoid.Value

, Text.Lexing.Token
, Text.Lexing.Tokeniser

, Text.Parsing.CharUtil
, Text.Parsing.Fork
, Text.Parsing.TokenUtil

sourcedir = "src/idris"
2 changes: 1 addition & 1 deletion nova-bin.ipkg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package nova-bin

depends = contrib, just-a-monad
depends = contrib, just-a-monad, just-a-parser

sourcedir = "src/idris"

Expand Down
216 changes: 0 additions & 216 deletions src/idris/Data/Location.idr

This file was deleted.

3 changes: 2 additions & 1 deletion src/idris/Nova/Core/Unification.idr
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module Nova.Core.Unification

import Me.Russoul.Data.Location

import Data.List
import Data.SnocList
import Data.Util
import Data.Maybe
import Data.AVL
import Data.Fin
import Data.Location

import Text.PrettyPrint.Prettyprinter.Render.Terminal
import Text.PrettyPrint.Prettyprinter
Expand Down
3 changes: 2 additions & 1 deletion src/idris/Nova/Surface/Elaboration/Implementation/Common.idr
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module Nova.Surface.Elaboration.Implementation.Common

import Me.Russoul.Data.Location

import Data.AVL
import Data.List
import Data.List1
import Data.SnocList
import Data.Fin
import Data.Location
import Data.String

import Text.PrettyPrint.Prettyprinter.Render.Terminal
Expand Down
3 changes: 2 additions & 1 deletion src/idris/Nova/Surface/Elaboration/Implementation/Elem.idr
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module Nova.Surface.Elaboration.Implementation.Elem

import Me.Russoul.Data.Location

import Data.AVL
import Data.List
import Data.List1
import Data.SnocList
import Data.Fin
import Data.Location
import Data.String

import Text.PrettyPrint.Prettyprinter.Render.Terminal
Expand Down
3 changes: 2 additions & 1 deletion src/idris/Nova/Surface/Elaboration/Implementation/Solve.idr
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module Nova.Surface.Elaboration.Implementation.Solve

import Me.Russoul.Data.Location

import Data.AVL
import Data.List
import Data.List1
import Data.SnocList
import Data.Fin
import Data.Location
import Data.String

import Text.PrettyPrint.Prettyprinter.Render.Terminal
Expand Down
3 changes: 2 additions & 1 deletion src/idris/Nova/Surface/Elaboration/Implementation/Tactic.idr
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module Nova.Surface.Elaboration.Implementation.Tactic

import Me.Russoul.Data.Location

import Data.AVL
import Data.List
import Data.List1
import Data.SnocList
import Data.Fin
import Data.Location
import Data.String

import Text.PrettyPrint.Prettyprinter.Render.Terminal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
module Nova.Surface.Elaboration.Implementation.Tactic.NormaliseCommutativeMonoid

import Me.Russoul.Data.Location
import Me.Russoul.Text.Lexer.Token

import Data.AVL
import Data.Fin
import Data.List1
import Data.Location
import Data.SnocList
import Data.Util
import Data.Either

import Text.PrettyPrint.Prettyprinter
import Text.Lexing.Token

import Nova.Core.Context
import Nova.Core.Conversion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Nova.Surface.Elaboration.Implementation.Tactic.TermLens

import Data.Location
import Me.Russoul.Data.Location

import Data.String

import Text.PrettyPrint.Prettyprinter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Nova.Surface.Elaboration.Implementation.Tactic.Trivial

import Data.Location
import Me.Russoul.Data.Location

import Data.SnocList

import Nova.Core.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module Nova.Surface.Elaboration.Implementation.Tactic.Unfold

import Me.Russoul.Data.Location

import Data.Fin
import Data.Location
import Data.SnocList
import Data.Util

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module Nova.Surface.Elaboration.Implementation.TopLevel

import Me.Russoul.Data.Location

import Data.AVL
import Data.List
import Data.List1
import Data.Fin
import Data.Location
import Data.String

import Nova.Core.Context
Expand Down
Loading

0 comments on commit 29a4854

Please sign in to comment.