This module is a very simple parser for parameters recognition.
It recognizes given parameters and their values.
As input it becomes list of parameters and their values in format [ParameterInput]
and input String where parameters will be searched.
As output it deliveres recognized parameters and values in format [ParameterOutput],
where only these parameters are present which have been found in the input string.
In output list each exisitng parameter has exactly one value - this one that has
been recognized in the input string.
Parameters in the input string have to be always given in following format:
(<flagname> <parameter>)*
Example how to use it.
let paramsList = matchParamsL params inputText
let paramsTree = matchParamsT paramsList
params :: [ParameterInput]
params = [(-pl1,algNum),(-pl2,algNum),
(-br1,0:(map show [5..30])),(-br2,0:(map show [5..30])),
(-dp1,0:(map show [3..8])),(-dp2,0:(map show [3..8])),
(-verbose,[0,1,2]),
(-evaluator,[only,all])]
|