Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial LSP Server (Linting, Parsing, Typecheck) #8

Closed
wants to merge 18 commits into from
Closed
Next Next commit
wip new parser structures
  • Loading branch information
jmcardon committed Mar 1, 2023
commit 2d21d6b0e4e0d55f8adc217d3fc75ceaca4bb70d
3 changes: 0 additions & 3 deletions pact-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ library
Pact.Core.PactValue
Pact.Core.Debug

-- Common syntax
Pact.Core.Syntax.Common

-- Syntax modules
Pact.Core.Syntax.Lisp.ParseTree
Pact.Core.Syntax.Lisp.Lexer
Expand Down
186 changes: 0 additions & 186 deletions pact-core/Pact/Core/Syntax/Common.hs

This file was deleted.

16 changes: 8 additions & 8 deletions pact-core/Pact/Core/Syntax/Lisp/LexUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ import qualified Data.Text as T
import Pact.Core.Info
import Pact.Core.Errors
import Pact.Core.Pretty (Pretty(..))
import Pact.Core.Syntax.Common
import Pact.Core.Syntax.Lisp.ParseTree

type ParserT = Either PactErrorI
type ParsedExpr = Expr LineInfo
type ParsedDefun = Defun ParsedExpr LineInfo
type ParsedDef = Def ParsedExpr LineInfo
type ParsedDefConst = DefConst ParsedExpr LineInfo
type ParsedModule = Module ParsedExpr LineInfo
type ParsedTopLevel = TopLevel ParsedExpr LineInfo
type ParsedIfDef = IfDef ParsedExpr LineInfo
type ParsedInterface = Interface ParsedExpr LineInfo
type ParsedDefun = Defun LineInfo
type ParsedDef = Def LineInfo
type ParsedDefConst = DefConst LineInfo
type ParsedModule = Module LineInfo
type ParsedTopLevel = TopLevel LineInfo
type ParsedIfDef = IfDef LineInfo
type ParsedInterface = Interface LineInfo
type ParsedReplTopLevel = ReplTopLevel LineInfo

data PosToken =
Expand All @@ -57,6 +56,7 @@ data Token
| TokenCapGov
| TokenInterface
| TokenImport
-- Def keyowrds
| TokenDefun
| TokenDefConst
| TokenDefCap
Expand Down
Loading