module lang::php::util::Corpus
rascal-0.40.17
php-analysis-0.2.4
Usage
import lang::php::util::Corpus;
Source code
http://github.com/cwi-swat/php-analysis/blob/main/src/main/rascal/lang/php/util/Corpus.rsc
Dependencies
import lang::php::stats::Stats;
import lang::php::util::Config;
import String;
import IO;
import Exception;
import List;
import Set;
alias Corpus
map[str Product, str Version]
data RuntimeException
data RuntimeException
= productNotFound(str product, str version, loc productDir)
| versionNotFound(str product, str version)
| productNotFound(str product)
;
function products
set[str] products()
function versions
rel[str,str] versions()
set[str] versions(str p)
function corpusItemExists
bool corpusItemExists(str product, str version)
function getCorpusItem
loc getCorpusItem(str product, str version)
function getSystemLoc
loc getSystemLoc(str product, str version)
function getProducts
set[str] getProducts()
function getVersions
set[str] getVersions(str product)
function getSortedVersions
list[str] getSortedVersions(str product)
function compareVersion
bool compareVersion(str v1, str v2)
function missingCorpusItems
map[str,str] missingCorpusItems(map[str,str] corpus)
function bundleCorpusItems
str bundleCorpusItems(map[str,str] corpus, str corpusName)
function getLatestVersionsByVersionNumber
map[str Product, str Version] getLatestVersionsByVersionNumber()
function getLatestPHP4VersionsByVersionNumber
map[str Product, str Version] getLatestPHP4VersionsByVersionNumber()
function getLatestPHP5VersionsByVersionNumber
map[str Product, str Version] getLatestPHP5VersionsByVersionNumber()
function getLatestVersions
map[str Product, str Version] getLatestVersions()
function getLatestPHP4Versions
map[str Product, str Version] getLatestPHP4Versions()
function getLatestPHP5Versions
map[str Product, str Version] getLatestPHP5Versions()