패러독스(게임회사)의 게임(clausewitz엔진으로 개발된)의 데이터 파일은 주로 특정한 게임데이터 형식을 가진다. EU4Game line comment countries = { -1 = { name = "USA" core = { 1 2 3 } } }
ClauParser https://github.com/ClauText/ClauParser - Known Problem - scanning problem with "\\\\" and etc.. - Parallel Scanning, Parallel Parsing. -
A = { x = 1 } in ClauParser, UserType ut("A"); ut.AddItemType("x", "1"); A = { } ... UserType -> Node x = 1 ... ItemType -> Node
valid text ex) A = { x = 1 } not valid text ex) x = 1 } think x = 1 } as # = { x = 1 } in this case, Virtual Node is used. line comments starts with # and scanner passes line comments. so case ...
= { # = { # = { } } } exist. but, = { } # = { } not exist. and, A = { } # = { } not exist.
ClauExplorer주의) use valid utf-8 file.