
I have a working dynamic language definition for an existing lisp-like language that is in use here. The language allows the definition of rules, one per line, in the source file. Certain rules can be followed by additional, multi-line active content which is distinguishable only by its not being either a comment or a rule definition. While the end of this content is clearly marked by a token, the start is not. So, the only available token is the end-of-line mark.
I have been trying to extract the the portion of the language that deals with the structure of the addtional content, using a direct lexical state transition. When I parse a file that exercises the state transition, I get unexpected recursion on the PerformSemanticParse function, which seems to be triggered by the PatternValue matching the newline. This faults rather quickly on a stack overflow.
I have tried to avoid having to match the newline results in the recognition of the StartScope token. I have not found anything that works.
This all works fine until I try to extract the language for the additional content into a separate file.
Any suggestions?
I have been trying to extract the the portion of the language that deals with the structure of the addtional content, using a direct lexical state transition. When I parse a file that exercises the state transition, I get unexpected recursion on the PerformSemanticParse function, which seems to be triggered by the PatternValue matching the newline. This faults rather quickly on a stack overflow.
I have tried to avoid having to match the newline results in the recognition of the StartScope token. I have not found anything that works.
This all works fine until I try to extract the language for the additional content into a separate file.
Any suggestions?