rascal icon indicating copy to clipboard operation
rascal copied to clipboard

false "Undefined" message from type checker for variable introduced in concrete syntax pattern in comprehension.

Open jurgenvinju opened this issue 3 years ago • 1 comments

Describe the bug

rel[str from, str to] edges = {<"<from>", "<to>"> | /(Edge) `<Node from> -- <Node to>` := g}

This gets an Undefined from and Undefined to from the type-checker.

jurgenvinju avatar Sep 27 '22 15:09 jurgenvinju

module Syntax

start syntax Graph = "graph" Node+ top "{" Edge* edges "}";

syntax Edge = Node from "--" Node to;

layout Whitespace = [\ \t\n\r]*;

lexical Node = [$A-Za-z0-9\-]+;

jurgenvinju avatar Sep 27 '22 15:09 jurgenvinju

Thanks for reporting. Apart from the fact that the variable g is undefined in the given code snippets, the undefined messages are gone now.

PaulKlint avatar Mar 13 '24 16:03 PaulKlint