Skip to content

Instantly share code, notes, and snippets.

acple acple

Block or report user

Report or block acple

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View DebugOutputStream.cs
using System;
using ParsecSharp;
namespace ParsecSharp.Utils
{
public class DebugOutputStream<TToken> : IParsecStateStream<TToken>
{
public enum MoveState { Backward, Stay, Forward }
private class Cursor
@acple
acple / Memoize.cs
Last active Mar 18, 2019
メッメモリリークだあーーにげろーー
View Memoize.cs
using System.Collections.Generic;
using ParsecSharp;
using ParsecSharp.Internal;
namespace ParsecSharp.Extensions
{
public static class Parser
{
public static Parser<TToken, T> Memoize<TToken, T>(Parser<TToken, T> parser)
{
View MethodGroupNullable.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>8.0</LangVersion>
<!-- for Visual Studio 16.2.x Preview -->
<Nullable>enable</Nullable>
You can’t perform that action at this time.