removed the option HCL_TRAIT_LANG_ENABLE_BLOCK, thus removing conditional codes for simplicity.
All checks were successful
continuous-integration/drone/push Build is passing

changed the compiler to require a block expression as the class body
This commit is contained in:
2024-07-06 12:16:05 +09:00
parent 0befaf0a97
commit 6407d3c175
10 changed files with 64 additions and 108 deletions

View File

@ -80,7 +80,7 @@ func main() {
x.SetLogTarget("/dev/stderr")
}
x.SetTrait(x.GetTrait() | hcl.TRAIT_LANG_ENABLE_EOL | hcl.TRAIT_LANG_ENABLE_BLOCK)
x.SetTrait(x.GetTrait() | hcl.TRAIT_LANG_ENABLE_EOL)
err = x.Ignite(1000000)
if err != nil {