Skip to content

Commit

Permalink
Fixed error spotted by type checker (discussed with @jurgenvinju)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Sep 27, 2024
1 parent 5f618d8 commit 286ff48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/grammars/dramb/Diagnose.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ void tokens(Tree x, Tree y) {
Words lexX = {t | t <- wordsX, lex(_) := t.cat};
Words lexY = {t | t <- wordsY, lex(_) := t.cat};
litParentsX = {<p,l> | /t:appl(p,[*_,l:appl(prod(l,_,_),_),*_]) := x, lit(_) := l || cilit(_) := l};
litParentsY = {<p,l> | /t:appl(p,[*_,l:appl(prod(l,_,_),_),*_]) := y, lit(_) := l || cilit(_) := l};
litParentsX = {<p,l> | /appl(p,[*_,appl(prod(l,_,_),_),*_]) := x, lit(_) := l || cilit(_) := l};
litParentsY = {<p,l> | /appl(p,[*_,appl(prod(l,_,_),_),*_]) := y, lit(_) := l || cilit(_) := l};
unreserved
= { <posX.offset, lc, c> | <posX, lc, _> <- litX - litY, <posY, c, _> <- lexY - lexX, posX.offset == posY.offset, posX.length == posY.length}
Expand Down

0 comments on commit 286ff48

Please sign in to comment.