Skip to main content

module lang::php::ast::System

rascal-0.40.17
php-analysis-0.2.4

Usage

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

Source code

http://github.com/cwi-swat/php-analysis/blob/main/src/main/rascal/lang/php/ast/System.rsc

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)