This file contains hidden or 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
open System; | |
exception ParseError of string | |
(* A token represent a single element of the parse tree *) | |
type Token = | |
| EOFToken | |
| NumberToken of double | |
| IdentifierToken of string | |
| OperatorToken of char |
This file contains hidden or 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
module Skim.Main | |
open System | |
open System.IO | |
open System.Linq | |
type Sexp = | |
| Atom of Value | |
| List of Sexp list | |
and Value = |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication8 | |
{ | |
class Program | |
{ |
This file contains hidden or 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
module LazyStuff.Main | |
open System | |
(* I dont know if this is actually fast *) | |
type FastLazy<'a> = { | |
mutable Value : 'a option; | |
Func : unit -> 'a; | |
} | |
with |
This file contains hidden or 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
using System; | |
namespace Foo | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
const int TestSize = 1000000; | |
OlderNewer