Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
Tooling
0 votes
2 replies
54 views

I’ve built a custom language server using Rascal MPL’s parametric language server (util::LanguageServer) with TypePal for semantic analysis, and packaged it's .rsc dependencies in a jar as a VSCode ...
Novend's user avatar
1 vote
0 answers
66 views

I am trying to identify duplicate blocks in a set of files. I read all lines from all files into one list[str] for analysis. A block consist of a number of consecutive lines. A variable named ...
Ad Versteeg's user avatar
1 vote
1 answer
70 views

The parseJSON function fails to parse this fragment "[{\"modelId\":\"\",\"oldSignature\":{\"val\":\"signature\"},\"newSignature\":{\&...
Pius Arhanbhunde's user avatar
1 vote
1 answer
53 views

It is a while ago that I used Rascal, so this may be a silly question. How to get the location of a node in a parse tree? For example, I would like to print the location of the condition of each if-...
Steven Klusener's user avatar
1 vote
1 answer
88 views

I'm trying to write a summarizer for my DSL in order to display error messages in the console. I've been following the example with the Pico language and was able to successfully create a parser and ...
Ivo Belitts's user avatar
-1 votes
1 answer
68 views

I have searched and read the IO module docs. I don't see any function like canWrite or isWritable (or the opposite). How can I determine whether a file is writable - without actually writing to it?
Robert Taylor's user avatar
1 vote
0 answers
94 views

So bascially, I'm trying to create a string literal that would support string interpolation without trimming out the whitespaces. E.g. let x = s"hello ${foobar} world ". The idea ...
Onyedika Ekwe CHRISxx's user avatar
0 votes
1 answer
46 views

I'd like to be able to generate Code Property Graphs (CPG) from a Java codebase. I am new to Rascal MPL but from what I understand this is a good use case for it. Not been able to find any material ...
bruce_wayne's user avatar
1 vote
1 answer
52 views

I have been trying create and insert into map in Rascal via java, but I keep getting an empty map what am I doing wrong? There is no documentation on how to use this library, this will be very useful. ...
Pius Arhanbhunde's user avatar
0 votes
1 answer
37 views

How do I create a customized file scheme in RascalMPL, like so |somescheme:///|, I couldn't find any resource on how that can be done?
Pius Arhanbhunde's user avatar
1 vote
2 answers
97 views

I am working on a Rust CLI (using Clap) to use along side my Rascal DSL by problem is this. How do I call a Rascal function (functions defined my DSL) in my Rust CLI code? I have previously ...
Benni Katchy's user avatar
0 votes
0 answers
40 views

I am parsing a list of cpp files using a simple Rascal script that uses the createM3AndAstFromCppFile function from the clair package to parse the C++ code and generate a M3 model. Unfortunately, in ...
Light_FLP's user avatar
1 vote
1 answer
56 views

I'm trying to modify a specific part of a tree at a given physical location. My approach was to extract the subtree using treeAt, modify it with a visit statement, and then update the original tree. ...
Martin's user avatar
1 vote
1 answer
64 views

In rascal, when my DSL has a parse error, how can I be able to detail what likely caused the syntax/parse error, since the ParseError exception just wraps the location of the issue in the file? Any ...
Pius Arhanbhunde's user avatar
1 vote
1 answer
62 views

Ever since I updated the vscode extension of rascal to version 0.11.2, I have been getting ambiguity warnings and errors when I try to test my syntax. I downgraded back to 0.11.1 and it works as it ...
Hassan Ayomide's user avatar

15 30 50 per page
1
2 3 4 5
33