Skip to content

Instantly share code, notes, and snippets.

@acple
Created June 10, 2016 11:14
Show Gist options
  • Save acple/1a0c4770c8a9571da0785b661a6ae49f to your computer and use it in GitHub Desktop.
Save acple/1a0c4770c8a9571da0785b661a6ae49f to your computer and use it in GitHub Desktop.
// .NET framework 4.6.1 / x64 + Release
// https://github.com/acple/ParsecSharp/tree/5ea648b20ac28cc032a669c8fbe0f346e3e947fc
using System.Diagnostics;
using static System.Console;
using static Parsec.Parser;
using static Parsec.Text;
namespace _
{
class Program
{
static void Main(string[] args)
{
var count = 10000;
//var parser = SkipMany(Any());
var parser = SkipMany(Any().Do(_ => WriteLine(new StackTrace().FrameCount)));
parser.Parse(new string('A', count));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment