#10 appended tokentypes to buffer for pattern compiler
added some regular expr, pattern matcher doesnt working