Skip to content

Commit

Permalink
isa-parser: recordUpd: fieldL instead of termL for field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZoeyChen committed Jan 15, 2020
1 parent cd081fe commit a2085cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions isa-parser/Isabelle/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,18 @@ recordUpdTermL = do { stringL "\\<lparr>"
; return $ RecordUpd upds }

updTermL :: ParserM (Term, Term)
updTermL = do { term1 <- termL
updTermL = do { term1 <- fieldL
; stringL ":="
; term2 <- termL
; return (term1, term2) }
; return (AntiTerm term1, term2) }

fieldL :: ParserM String
fieldL = notReservedLexeme fieldS

fieldS :: ParserM String
fieldS = letterS <++> manyP fieldLetters
where
fieldLetters = ((letterS <||> digitS <||> charString '_') <||> charString '\'' <||> charString '.') <?> "quasi-letter"

caseOfTermL :: ParserM Term
caseOfTermL = do { stringL "case"
Expand Down

0 comments on commit a2085cd

Please sign in to comment.