Skip to main content

module lang::php::ast::System

rascal-0.43.0
org.rascalmpl.php-analysis-0.3.6

Usage​

import lang::php::ast::System;

Dependencies​

import lang::php::ast::AbstractSyntax;
import lang::php::ast::NormalizeAST;

data System​

data System  
= system(map[loc fileloc, Script scr] files)
| namedVersionedSystem(str name, str version, loc baseLoc, map[loc fileloc, Script scr] files)
| namedSystem(str name, loc baseLoc, map[loc fileloc, Script scr] files)
| locatedSystem(loc baseLoc, map[loc fileloc, Script scr] files)
;

function normalizeSystem​

System normalizeSystem(System s)

function discardErrorScripts​

System discardErrorScripts(System s)

filter a system to only contain script(_), and therefore discard errscript

function createEmptySystem​

System createEmptySystem()

System createEmptySystem(loc l)

function convertSystem​

System convertSystem(value v)

System convertSystem(value v, loc l)

function errorScripts​

set[loc] errorScripts(System s)