Skip to content

Instantly share code, notes, and snippets.

@hodzanassredin
hodzanassredin / ObjectAlgebra.cs
Created July 31, 2012 19:38
Solutions to the Expression Problem Using Object Algebras
using System;
using System.Globalization;
namespace OASample
{
// Initial object algebra interface for expressions: integers and addition
interface IExpAlg<E>
{
E Lit(int x);
@hodzanassredin
hodzanassredin / prolog.cs
Created October 29, 2011 18:53
prolog in csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Prolog1
{
class Program
{
static void Main(string[] args)