|
This is first time I'm using Irony, for some database activity. I could able to parse it successfully but want to improve user interface by allowing users to pass optional parameters in any order.
MAP <<table name>>, Target <<table name>> <param1> <param2> <param3> <param4> <param5>
where param2, param3, param4 and param5 are optional parameters to the map statement.
Currently I can able to parse if the param values are provided in sequential, ex: param3, followed by param2.
However, I would like users to provide those optional parameters in any order.
Bnf rules for map statement:
map.rule = MAP + Id + comma + TARGET + Id + param1 + param2 + param3 + param4 + param5
param2.rule = Empty | <<some other rules>>
param3.rule = Empty | <<some other rules>>
param4.rule = Empty | <<some other rules>>
param5.rule = Empty | <<some other rules>>
Kindly someone help me.
|