Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haskell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Artin Ghasivand
haskell
Commits
e4b5277c
Commit
e4b5277c
authored
1 year ago
by
Artin Ghasivand
Browse files
Options
Downloads
Patches
Plain Diff
Add new prototype grammar `substCandid` to fix substition parse errors
parent
869f60c7
Branches
IAllITyArgFix
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#83716
failed
1 year ago
Stage: tex
Stage: pdf
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grammar.ott
+12
-5
12 additions, 5 deletions
grammar.ott
with
12 additions
and
5 deletions
grammar.ott
+
12
−
5
View file @
e4b5277c
...
...
@@ -206,14 +206,14 @@ es {{ tex \overline{\ottnt{[[e]]} } }} :: 'Expressions_' ::= {{ com List of expr
% %% Metatheory %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
theta {{ tex \theta }}, spsi {{ tex \psi }} :: 'MonoSubst_' ::= {{ com Mono Type substitutions }}
| [ </
ai := t
i // i /> ] :: :: SubstList {{ com Mappings }}
| [<
a := t
>] :: M :: Overline
| [ </
substCandidi := SubstCandid'
i // i /> ] :: :: SubstList {{ com Mappings }}
| [<
substCandid := substCandid'
>] :: M :: Overline
{{ tex [\overline{[[a]] [[:=]] [[t]]}] }}
| theta1 theta2 :: M :: Concat
btheta {{ tex \Theta }}, bpsi {{ tex \Psi }} :: 'PolySubst_' ::= {{ com Poly Type substitutions }}
| [ </
kai := s
i // i /> ] :: :: SubstList
| [<
ka := s
>] :: M :: Overline {{ tex [\overline{[[ka]] [[:=]] [[s]]}] }}
| [ </
substCandidi := substCandid'
i // i /> ] :: :: SubstList
| [<
substCandid := substCandid'
>] :: M :: Overline {{ tex [\overline{[[ka]] [[:=]] [[s]]}] }}
| emptyset :: :: Empty {{ com Empty set }}
| btheta o btheta' :: :: Comp {{ com Composition }}
...
...
@@ -270,7 +270,14 @@ substs :: SubstObject ::= {{ com Substitutions }}
| theta :: :: MonoSubst
| btheta :: :: PolySubst
hasInstVar :: HasInstantiationVar ::= {{ com Thigns that may contain instantiation variables }}
substCandid :: SubstCandidate ::= {{ com Things that we can use in a substitution }}
| ka :: :: InstVar
| a :: :: TypeVar
| t :: :: MonoType
| s :: :: PolyType
| rho :: :: RhoType
hasInstVar :: HasInstantiationVar ::= {{ com Things that may contain instantiation variables }}
| rhos :: :: RhoTypes
| phs :: :: PolyTypes
| ph :: :: PolyType
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment