Skip to content

Commit

Permalink
Use naming for hPred consistent with LF
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Oct 17, 2024
1 parent 2293cf5 commit 18da05f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Refinements-Parsing/NNFParser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Class {
'constant',
'hBind',
'symSort',
'pred',
'kappaApp',
'kappa',
'predAnd',
Expand Down Expand Up @@ -86,7 +85,7 @@ NNFParser >> funcSort [

{ #category : #grammar }
NNFParser >> hBind [
^(symSort trim, pred parens) parens
^(symSort trim, hPred) parens
==> [ :x | HBind x: x first first τ: x first second p: x second ]
]

Expand All @@ -104,7 +103,9 @@ NNFParser >> hCstr [
{ #category : #grammar }
NNFParser >> hPred [
^(
pred "will inline this"
predAnd
/ kappaApp
/ decidablePred
) parens
]

Expand All @@ -127,15 +128,10 @@ NNFParser >> kappaApp [
==> [ :x | RefVarApp var: x first args: x second ]
]

{ #category : #grammar }
NNFParser >> pred [
^predAnd / kappaApp / decidablePred
]

{ #category : #grammar }
NNFParser >> predAnd [
^'and' asParser,
(#blank asParser plus, pred parens ==> [:x| x second]) star
(#blank asParser plus, hPred ==> [:x| x second]) star
==> [ :x | HPredAnd of: x second ]
]

Expand All @@ -144,7 +140,7 @@ NNFParser >> qualif [
^'qualif' asParser trim,
NNFParser upperId trim, "name"
symSort trim plus parens trim, "params"
pred parens "body"
hPred "body"
==> [ :x | Qualifier
name: x second
params: (x third collect: [ :p | QualParam symbol: p first sort: p second ])
Expand Down

0 comments on commit 18da05f

Please sign in to comment.