package Ġcom . github . bad ou aly . telegram . tl . builder Ċ Ċ import Ġcom . fasterxml . jackson . databind . JsonNode Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . github . bad ou aly . telegram . tl . builder . parser . build FromJson Ċ import Ġcom . github . bad ou aly . telegram . tl . builder . po et . Java Po et Ċ import Ġjava . io . File Ċ Ċ private Ġval ĠTL _ SCHEMA _ LEVEL Ġ= Ġ 6 6 Ċ private Ġval ĠTL _ SCHEMA _ PATH Ġ= Ġ"./ tl - builder / src / main / resources / tl - schema -$ TL _ SCHEMA _ LEVEL . json " Ċ Ċ val ĠOUTPUT Ġ= Ġ"./ tl / src / main / java " Ċ val ĠOUTPUT _ TEST Ġ= Ġ"./ tl / src / test / java " Ċ Ċ // val Ġtl Regex Ġ= Ġ" ([^ # ]+) # ([ a - f 0 - 9 ]+) Ġ( ?: ([^ : ]+ ): ([^ Ġ] +) Ġ) *= Ġ([ ^ ; ]+ ); ". to Regex () Ċ Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġprintln (" TL ĠCompiler Ġdeveloped Ġby ĠY ann ick ĠBad ou al , ĠK ot log ram Ġ( c ) Ġ 2 0 1 6 Ġv 1 . 0 ") ĊĊĠĠĠ Ġval Ġtl Schema Node Ġ= ĠObjectMapper (). readValue ( File ( TL _ SCHEMA _ PATH ), ĠJsonNode :: class . java ) ĊĠĠĠ Ġval Ġdefinition Ġ= Ġbuild FromJson ( tl Schema Node ) ĊĊĠĠĠ ĠJava Po et . write Classes ( definition ) Ċ }