![]() |
|
Navigation |
Synopsis Convert a string value to a (source code) location.
Function
loc toLocation(str s)
Usage
import String;
Description
Examples
rascal>import String; ok rascal>toLocation("http://grammarware.net"); loc: |http://grammarware.net| rascal>toLocation("rascal://lang::rascal::syntax::Rascal"); loc: |rascal://lang::rascal::syntax::Rascal| rascal>toLocation("document.xml"); loc: |cwd:///document.xml| ![]() |