Hi
I am rookie when it comes to Parser/Lexers
I have a meta-language file that i want to process to retrieve the logic in the document. It is a series of IF THEN ELSE that are also nested
if TYPE = '01'
then
if PRODUCT IN LIST( LIST1 )
then
if CAT>3
then
PRODUCTTYPE = "PRODUCT01"
else
PRODUCTTYPE = "PRODUCT02"
else
........
else
........
What I need is to get the info that get's you to the final or endpoint results
ie
"PRODUCT01" is TYPE ="01" and IN LIST1 and CAT>3
"PRODUCT02" is TYPE ="01" and IN LIST1 and NOT CAT>3
Can I use GOLD to do this???
Also any examples/hints on how I would implement this???
I am working in C#
Thanks