Skip to content

Commit

Permalink
Rename var to hVar for consistency with LF
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Oct 17, 2024
1 parent d82607f commit 7375c46
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/Refinements-Parsing/NNFParser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Class {
#superclass : #FixpointParser,
#instVars : [
'hCstr',
'var',
'sort',
'hBind',
'symSort',
Expand Down Expand Up @@ -97,7 +96,7 @@ NNFParser >> hQualifier [
NNFParser >> hThing [
^(
('constraint' asParser trim, hCstr ==> #second)
/ var
/ self hVar
/ self hQualifier
/ ('constant' asParser trim, self tok trim, sort ==> [ :x | HCon symbol: x second sort: x third ])
/ self fixpoint
Expand All @@ -107,6 +106,15 @@ NNFParser >> hThing [
) parens
]

{ #category : #grammar }
NNFParser >> hVar [
^'var' asParser trim,
self kvSym trim,
sort parens trim plus parens
==> [ :x | HVar name: x second argSorts: x third ]

]

{ #category : #grammar }
NNFParser >> kvSym [
^('$' asParser,
Expand Down Expand Up @@ -157,15 +165,6 @@ NNFParser >> tvar [
/ ($` asParser, #lowercase asParser ==> [ :x | Z3Sort uninterpretedSortNamed: (String with: x second) ])
]

{ #category : #grammar }
NNFParser >> var [
^'var' asParser trim,
self kvSym trim,
sort parens trim plus parens
==> [ :x | HVar name: x second argSorts: x third ]

]

{ #category : #grammar }
NNFParser >> varSort [
^'@(' asParser, PPParser decimalInteger, ')' asParser
Expand Down

0 comments on commit 7375c46

Please sign in to comment.