Skip to content

Instantly share code, notes, and snippets.

View iximeow's full-sized avatar
🐟
you can tune a piano but you can't tuna fish

iximeow iximeow

🐟
you can tune a piano but you can't tuna fish
View GitHub Profile
@iximeow
iximeow / gist:6fa2f055034cac592259
Last active August 29, 2015 14:08
example of ixee UI element renderer code
public interface UIGenericElementRenderer<T extends glEEngine> {
public void unsafeDraw(UIElement elem, T engine);
}
public abstract class UIElementRenderer<T extends glEEngine, U extends UIElement> implements UIGenericElementRenderer<T> {
Class<U> myClass;
public UIElementRenderer(Class<U> rendereeClass) {
myClass = rendereeClass;
}
@iximeow
iximeow / gist:019d1ce90d13836e0d7e
Created August 20, 2014 17:53
Playing with Rattler
#! /usr/bin/env ruby
require 'rattler'
class Test < Rattler::Runtime::ExtendedPackratParser
grammar %{
%whitespace BLANK*
start <- ext? components