sebastienros / parlot

Fast and lightweight parser creation tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access Violation exception

lampersky opened this issue · comments

@sebastienros is there any cycle detection mechanism in parlot?

example code which will break your app:

var loop = Deferred<string>();

loop.Parser = loop;

var test = loop.Parse("hello parlot");

or

var loop = Recursive<string>(c => c);

var test = loop.Parse("hello parlot");

I would expect this will detect infinite loop and return null instead of crashing.

image