I'd like to parse a pseudo code. Its simple text and its syntax is very simple and structured like this:
keyword keyword .. keyword
but 'keyword' can be a structure like:
expression{keyword keyword .. keyword}
My thougth was to store information in a list, where elements can be ref's to a list. My problem is to recon the the matching closing brace of this statement.
Is there a regular expression what can teare the string into 'keyword' s or do I have to crawl the string char by char?