-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcparser: New CFG for explicit type casts on numeric types
Added a new type of numeric type transform, which is the explicit cast. It is similar to an explicit cast in C, but the resulting data type comes after the original data type, not before. (and also in C, you cant cast a data type token because its not a variable or literal, but that is just a DC file thing) This should benefit client implementations that are written in statically typed languages, such as C/C++/Rust iirc. This was not included in the original DC language, as Disney games used Python clients, and Python is a dynamically typed language.
- Loading branch information
Showing
1 changed file
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters