Community
Participate
Working Groups
Different compilers may need to assign different types to a literal. For example, in RBD the literal 12345 is of type int (because the length is > 4 and < 10) but in EDT its type is smallint (because it can be stored in a smallint variable). When RBD's code is based on EDT, we need a way for the RBD compiler to insert its own rules about the types of literals. Other generators may find this useful as well.
Tim, should this be considered for the .8 release?
Is this still relevant now that we let the user specify specific types to be attached to the literals? e.g. '123F' to make it a float literal.
This is only relevant if we plan to use the EDT compiler to compile code written in RBD. But I don't think we'll do that. It seems more likely that we'd write a new compiler for RBD code, and that compiler will be free to do whatever it wants with the literals.