Skip to content

Instantly share code, notes, and snippets.

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 / 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">
<!-- for Visual Studio 16.2.x Preview -->
View TypeClassTest.purs
module TypeClassTest where
import Prelude
import Unsafe.Coerce (unsafeCoerce)
class TwoParams a b where
func :: a -> b
instance equals :: TwoParams a a where
func = identity
You can’t perform that action at this time.