Skip to content

Instantly share code, notes, and snippets.

@vinodkd
vinodkd / gist:1319651
Created October 27, 2011 14:14
BNF-ish version of Jack's Syntax with some notes
stmt can have id, comment and fact attached
function can have same, but is a collection of stmts
program can have same, but is a collection of functions
built into the language def is a list creator
also built in is a hierarchical fact analyzer, ie, all facts
presented at a collection level are taken to represent reality
at that level. higher levels areexpected to have a "higher" understanding and therefore not applicable; similarly lower
list-of(XXX) := <list containing objects of type XXX>
@vinodkd
vinodkd / RewardPoints.java
Created September 17, 2011 18:38
Proc to reward points
/**
* If applicable, deducts the rewards amount from the current price,
* rewards points on the booking and returns the charge amount for the user's card.
*/
public CCAmt doRewards(String pos, CCAmt currentCCAmt,
rewardsInfo rewardsInfo,
String PNR,
XFactor xFactor,
boolean isSpecialInventory,
Money sellRateForSpecialInventory
@vinodkd
vinodkd / about.md
Created August 10, 2011 05:04 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer