Skip to content

Instantly share code, notes, and snippets.

View rumblesan's full-sized avatar

Guy John rumblesan

View GitHub Profile
@endolith
endolith / minbleps.cpp
Created May 10, 2012 18:20
MinBLEPs (by Daniel Werner)
// MinBLEP Generation Code
// By Daniel Werner
// This Code Is Public Domain
#include <math.h>
#define PI 3.14159265358979f
// SINC Function
inline float SINC(float x)
@zaach
zaach / 0_new.md
Created January 22, 2012 23:15
New Jison 0.3 features

Some improvements have been made for parser and lexer grammars in Jison 0.3 (demonstrated in the FlooP/BlooP example below.)

For lexers:

  • Patterns may use unquoted characters instead of strings
  • Two new options, %options flex case-insensitive
  • flex: the rule with the longest match is used, and no word boundary patterns are added
  • case-insensitive: all patterns are case insensitive
  • User code section is included in the generated module