Skip to content

Commit

Permalink
Rename qualif to hQualifier for consistency and to avoid confusion wi…
Browse files Browse the repository at this point in the history
…th F.qualifierP
  • Loading branch information
shingarov committed Oct 17, 2024
1 parent 493a839 commit 94ddedf
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/Refinements-Parsing/NNFParser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Class {
'hCstr',
'var',
'sort',
'qualif',
'hBind',
'symSort',
'hPred',
Expand Down Expand Up @@ -90,12 +89,25 @@ NNFParser >> hPred [
) parens
]

{ #category : #grammar }
NNFParser >> hQualifier [
^'qualif' asParser trim,
NNFParser upperId trim, "name"
symSort trim plus parens trim, "params"
hPred "body"
==> [ :x | Qualifier
name: x second
params: (x third collect: [ :p | QualParam symbol: p first sort: p second ])
body: x fourth expr ]

]

{ #category : #grammar }
NNFParser >> hThing [
^(
constraint
/ var
/ qualif
/ self hQualifier
/ ('constant' asParser trim, self tok trim, sort ==> [ :x | HCon symbol: x second sort: x third ])
/ self fixpoint
/ define
Expand All @@ -117,19 +129,6 @@ NNFParser >> pred [
==> [ :x | DecidableRefinement text: x ]
]

{ #category : #grammar }
NNFParser >> qualif [
^'qualif' asParser trim,
NNFParser upperId trim, "name"
symSort trim plus parens trim, "params"
hPred "body"
==> [ :x | Qualifier
name: x second
params: (x third collect: [ :p | QualParam symbol: p first sort: p second ])
body: x fourth expr ]

]

{ #category : #grammar }
NNFParser >> sort [
^ self sort′: sortArg trim star
Expand Down

0 comments on commit 94ddedf

Please sign in to comment.