Created
June 10, 2016 11:14
-
-
Save acple/1a0c4770c8a9571da0785b661a6ae49f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .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