This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# | |
# Copyright (c) 2010 Doug Hellmann. All rights reserved. | |
# | |
"""Pretty-print function for ElementTree | |
""" | |
#end_pymotw_header | |
from xml.etree import ElementTree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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+' ()+-*/') |