params package¶
Package that provides all the functionality to parse and process the command line arguments of Cnerator.
To see all the parameters, run Cnerator with -h
or --help
parameters.
Submodules¶
params.epilog module¶
This module is aimed at building the epilog of the help message. Such message shows the different syntactic constructs provided by Cnerator.
params.json_probs module¶
This module is aimed at processing input json files specifying the probabilities of the syntactic constructs to be created by Cnerator (command line option -P). See json/probabilities for particular examples.
params.parameters module¶
Module where the command line arguments are parsed.
-
params.parameters.
get_modules_to_import
(vst_param: str) → List[source]¶ Returns the list of visitors to import, given the args.visitors option
-
params.parameters.
get_probs_to_override
(probs_param: str) → Optional[Dict[str, dict]][source]¶ Parses the args.probs parameter and returns the dictionary with their values
params.writter module¶
This modulete takes the program representation (AST) and writes it into the different
compilation units specified by the user through the -n
or -nfiles
options.