Navigation
Synopsis Convert a string value to a (source code) location.
Function loc toLocation(str s)
Usage import String;
Description
  1. Converts string s to a location.
  2. If the scheme is not provided, it is assumed to be cwd.
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|
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.