37
37
ParserBase.setupRules(self)
42
42
self.addRule("Char", r"'\\.'|'[^\\]'")
43
43
self.addRule("Number", r"[0-9](\.[0-9]*)?(eE[+-][0-9])?[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?")
44
44
self.addRule("Preprc", r"^\s*#(.*\\\n)*(.*(?!\\))$")
46
46
self.addRule("SPChar", r"[~!%^&*()+=|\[\]:;,.<>/?{}-]")
48
48
reserved_words = ['struct', 'class', 'union', 'enum',