Skip to content

Instantly share code, notes, and snippets.

@johnmudd
johnmudd / 0_reuse_code.js
Created June 16, 2017 20:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@johnmudd
johnmudd / test_pyparsing.py
Created February 25, 2012 21:11
Sample use of pyparsing to extract typedef from C code. Surprisingly long output for such a simple demo.
#! /usr/bin/env python
from pyparsing import *
def get_typedef_parser():
declare_list = Forward() # Will be defined later, after being referenced.
ident = Word(alphas+'_', alphanums+'_')
int_number = Word(nums+' ()+-*/')