Programming language type system with automatic conversions
Abstract
A programming language type system includes, in a memory, a set of numeric type including integer types, fixed-point types and floating-point types, a set of type propagation rules to automatically determine result types of any combination of integer types, fixed-point types and floating-point types, constant annotations to explicitly specify a result type of a literal constant, context-sensitive constants whose type is determined from a context of a constant according to the set of type propagation rules, an assignment operator to explicitly specify a type of a value or computation, and operator annotations to explicitly specify a result type of a computation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 8.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A programming language type system comprising: a processor for executing: fixed-point rules in which fixed-point types can be automatically converted to floating-point types, wherein the fixed-point rules preserve integer-ness for one or more integer operations; integer rules in which integer types are distinct from fixed-point types and integer types can be automatically converted to fixed-point types; and a storage device for storing a result of at least one of executing the fixed-point rules and the integer rules.
- Claim 2Depends on #1
The system of claim 1 in which the fixed-point rules preserve integer-ness for all integer operations.
- Claim 3Depends on #1
The system of claim 1 in which the fixed-point rules preserve integer-ness for multiplication and division integer operations via a graduated radix point rule.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (1)
- A Floating-Point to Fixed-Point Assembly Program Translator for the TMS 320C25, Seehyun Kim, IEEE copyright 1994.