After implementing a type checker in Rascal using TypePal, how do I hook it up to the Eclipse IDE? Any resources or repositories to the solution to th ...
After implementing a type checker in Rascal using TypePal, how do I hook it up to the Eclipse IDE? Any resources or repositories to the solution to th ...
According to Rascal's documentation, the "?" operator can be used to query if a variable is "defined". For example: v is uninitialised and therefo ...
Is there a more efficient way than to get the total number of lines in a file? I presume this code has to read the entire file first, which could b ...
Any idea on how to implement macro syntax with Rascal and also how to implement the typing and expansion(translation) of the macro syntax in Rascal? A ...
I just stumbled upon this old post that mentions Java heap space and how to change its parameters in Eclipse (in the eclipse.ini file). How do I do se ...
It's easy to overload your own functions like so: such that testVal(|tmp:///|) will call the first method. I wish to do the same to IO::println: ...
I am trying to pass a regex argument as string and use that string with rexpMatch(). However it looks like the rexpMatch does not support escape chara ...
I've been trying out the chart module. I want to graph some simple data, in the REPL the standard example: barChart([<"<x>",x> | x <- [ ...
How to replace a subtree with nothing in a visit? In Pattern With Action, we see that replaces all red nodes with green nodes. I want to do someth ...
I often find myself testing using typeOf whenever I'm lost. Is there a similar way to print all properties or fields of a variable, similar to Object. ...
I have a list[Declaration] asts and traverse it as follows: I realize that visit will by default traverse the nodes using a top-down strategy. At a ...
I am trying to use Clair and Rascal to analyze C++ files. I followed the instructions on the Github page of Clair to add Clair to an empty Rascal pro ...
How do I implement the lexical and module scoping in the rascal language workbench? I need to implement lexical and module scoping within a DSL, plea ...
Is it possible to print all node ids / values that are traversed in a visit? Take the following code sample: I now get all types of the nodes that ...
How do I setup a Rascal-MPL project to consume the DSL built with Rascal? I don't seem to find any resource that details how to solve that particular ...
I have run into and issue. I have been trying to read the content of a file for an example project which contains I single file. Below you will find t ...
After installing Clair onto Rascal 0.17.0 import lang::cpp::AST; Gives the following error: Could not import module lang::cpp::AST: can not find in ...
I'm trying to execute a program on Ubuntu using the exec or createProcess function, but whenever I do so I get an error that I cannot explain. E.g.: ...
If I process a simple string with a regex, I expect I can extract variables. The examples in the manual states that the extraction results in a stored ...
I have java 8. I have installed the eclipse latest version as this supports ARM64 chip - https://www.eclipse.org/downloads/packages/release/2021-12/r/ ...