Skip to main content

module lang::rascal::tutor::conversions::Includes

rascal-0.40.13-BOOT2
rascal-tutor-0.19.9

Usage

import lang::rascal::tutor::conversions::Includes;

Dependencies

import IO;
import List;
import util::FileSystem;
import String;

function findModuleIncludes

list[loc] findModuleIncludes()

function fixModuleIncludes

void fixModuleIncludes()

void fixModuleIncludes(loc f)

function fixIncludes

list[str] fixIncludes([/include::\{LibDir\}<path:[^\]]+>\[\]/, *str tail])

list[str] fixIncludes(["```rascal", l:/include::\{LibDir\}<path:[^\]]+>\.rsc\[tags=module\]/, "```", *str tail])

default list[str] fixIncludes([str head, *str tail])

list[str] fixIncludes([])