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

feat: lightweight support for optional pp in raw tactic state #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Mathport/Syntax/Parse.lean
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ instance : FromJson RawGoal where
structure RawTacticState where
decl : Name
goals : Array RawGoal
pp : Option String -- Note: we do not propagate this to AST3.TacticState
deriving FromJson

deriving instance FromJson for AST3.Comment
Expand Down Expand Up @@ -1015,7 +1016,7 @@ def RawGoal.build : RawGoal → AST3.Goal
| ⟨hyps, target⟩ => ⟨hyps.map (·.build exprs), exprs[target]⟩

def RawTacticState.build : RawTacticState → Name × Array AST3.Goal
| ⟨declName, goals⟩ => (declName, goals.map (·.build exprs))
| ⟨declName, goals, _⟩ => (declName, goals.map (·.build exprs))

def RawTacticInvocation.build
(states : Array (Name × Array AST3.Goal))
Expand Down