This should be a CLI/API option, with the default being probably SWF 43 (FP 32).
We'll need to check the version during lexing, parsing and codegen - as it restricts which keywords are available, which syntax works, and which action bytecode is supported.
One notable example is that add is a valid keyword prior to SWF 8, e.g. a add b. From SWF 8 onwards, add is no longer a keyword and is a valid identifier instead.
This should be a CLI/API option, with the default being probably SWF 43 (FP 32).
We'll need to check the version during lexing, parsing and codegen - as it restricts which keywords are available, which syntax works, and which action bytecode is supported.
One notable example is that
addis a valid keyword prior to SWF 8, e.g.a add b. From SWF 8 onwards,addis no longer a keyword and is a valid identifier instead.