rascal
rascal copied to clipboard
The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
**Describe the bug** ``` rascal>data X = \hello-bye(); ok rascal>\hello-bye() X: \hello-bye() rascal>data X(int \what-if=0); ok rascal>\hello-bye(\what-if=1) X: \hello-bye(what-if=1) ``` Here we see `\hello-bye` is escaped as it should be,...
**Describe the bug** This is not ambiguous: ``` str treeAsMessage(Tree t) { str msg = "" + ""; // workaround funny ambiguity return msg; } ``` This is: ``` str...
**Describe the bug** The same set of definitions typed step-by-step in the REPL and imported as a module produce different behaviours. **To Reproduce** 1. Suppose the following definitions: ``` data...
**Describe the bug** `import lang::rascal::tests::concrete::SubscriptAndSlice` look at all the @ignoreInterpreter tests. They all fail.
**Is your feature request related to a problem? Please describe.** I was reading up on the simplification example and decided to express a stack language evaluation as simplification. I understand...
**Describe the bug** ``` >rascal>data X = x(map[str,str] namen=()); ok rascal>X example = x(); X: x() rascal>example.namen["jurgen"] = "vinju"; |prompt:///|(0,13,,): Uninitialized variable Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UninitializedVariable/UninitializedVariable.html| ``` This makes little sense to...
**Describe the bug** ``` rascal>listTerms(|project://code-as-data-demo/luceneIndex/|, "src") rel[str chars,int frequency]: { , , , , , , , , , } ``` Normal query on the same index works as expected...
**Describe the bug** If I click a loc of an exception, vscode shows the the wrong file. ``` |lib://typepal/src/analysis/typepal/TestFramework.rsc|(2986,1,,): Expected datetime (str, str), but got int Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UnexpectedType/UnexpectedType.html| ``` VS...
**Describe the bug**  **Desktop (please complete the following information):** - Context: VS Code - Rascal Version: 0.28.3
**Describe the bug** When using a parameterized syntax type, type reification does not appear to work. It errors mentioning that the type is not declared **To Reproduce** Steps to reproduce...