module battery.frontend.parameters

Holds code for parsing command line options into Lib and Exe.

Code Map

//! Holds code for parsing command line options into Lib and Exe.
module battery.frontend.parameters;


//! Parser args and turns them into Libs and Exes.
class ArgParser
{
public:
	mDrv: Driver;
	mArgs: Arg[];
	mPos: size_t;


public:
	this(drv: Driver) { }
	fn addExtraPkgs(pkgs: string[]) { }
	fn parseConfig(args: string[]) { }
	fn parseProjects(c: Configuration) { }


protected:
	fn parseDefault(c: Configuration) { }
	fn processBase(c: Configuration, base: Project) { }
	fn parseLib(c: Configuration, lib: Lib) { }
	fn parseExe(c: Configuration, exe: Exe) { }
	fn verify(lib: Lib) { }
	fn verify(exe: Exe) { }
	fn handleCommand(c: Configuration, cmd: string) { }
}

struct ToArgs
{
public:
	fn process(mDrv: Driver, mPath: string, args: string[]) Arg[] { }
}

fn parseTestArgs(drv: Driver, args: string[]) string { }
fn getArgs(arch: Arch, platform: Platform, isRelease: bool, isLTO: bool) string[] { }
fn getArgs(boot: bool, env: Environment) string[] { }
fn getArgs(boot: bool, cmds: Command[]) string[] { }
//! Turn Libs and Exes into command line arguments.
fn getArgs(libs: Lib[], exes: Exe[]) string[] { }
fn getArgsProject(b: Project, tag: string) string[] { }
fn getArgsLib(l: Lib) string[] { }
fn getArgsExe(e: Exe) string[] { }
fn parseArch(driver: Driver, a: string) Arch { }
fn parsePlatform(driver: Driver, p: string) Platform { }
fn findArchAndPlatform(driver: Driver, args: string[], arch: Arch, platform: Platform, isRelease: bool, isLTO: bool) { }
fn getArgs(libs: Lib[], exes: Exe[]) string[]

Turn Libs and Exes into command line arguments.

class ArgParser

Parser args and turns them into Libs and Exes.

struct Range

In light of ranges in Volt.