Skip to main content

module lang::cobol85::Parser

rascal-0.43.3
org.rascalmpl.cobol-air-0.1.2

Usage​

import lang::cobol85::Parser;

Dependencies​

import lang::cobol85::\syntax::Main;
import lang::cobol85::\syntax::Copybook;
import lang::cobol85::Preprocess;
import ParseTree;
import IO;
import Set;
import Exception;

function parseCobol85​

start[Cobol85] parseCobol85(loc org, bool allowAmbiguity=false, bool allowRecovery=false, bool doPreprocess=true)

start[Cobol85] parseCobol85(str src, loc org, bool allowAmbiguity=false, bool allowRecovery=false, bool doPreprocess=true)

function parseCobol85Copybook​

start[Copybook] parseCobol85Copybook(loc org, bool allowRecovery=false, bool doPreprocess=true)

function parseCobol85Copybook​

Parses a copybook, which may fit several alternatives of Copybook

start[Copybook] parseCobol85Copybook(str src, loc org, bool allowRecovery=false, bool doPreprocess=true)

When the copybook fits several alternatives of Copybook the result is a forest with an amb at the top. Any other ambiguity, below those alternatives or between two parses of the same alternative, throws Ambiguity as parse does.