Skip to content

Instantly share code, notes, and snippets.

View eschombu's full-sized avatar

Erik Schomburg eschombu

View GitHub Profile
@eschombu
eschombu / bvh_read.py
Created May 6, 2017 04:00 — forked from johnfredcee/bvh_read.py
bvh file parser (tested w Python2.6)
import re
bvh_file = "Example1.bvh"
def identifier(scanner, token): return "IDENT", token
def operator(scanner, token): return "OPERATOR", token
def digit(scanner, token): return "DIGIT", token
def open_brace(scanner, token): return "OPEN_BRACE", token
def close_brace(scanner, token): return "CLOSE_BRACE", token