-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hex, oct and bin for byte, ubyte, short, ushort, ulong, uint were added;
- Loading branch information
1 parent
7c40c00
commit af2f83c
Showing
4 changed files
with
170 additions
and
47 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,50 @@ | ||
libsl "1.0.0"; | ||
library simple; | ||
typealias int = int32; | ||
automaton A : int { | ||
var d1: int = 291; | ||
var d2: int = 291; | ||
var d3: int = 15; | ||
var d4: int = 10; | ||
var d5: int = 495; | ||
var d6: int = 291L; | ||
var d7: int = 291L; | ||
var d8: int = 15L; | ||
var d9: int = 10L; | ||
var d10: int = 495L; | ||
var d11: int = 495L; | ||
var plainZero: int = 0; | ||
typealias Int = int32; | ||
typealias UInt = unsigned32; | ||
typealias Byte = int8; | ||
typealias UByte = unsigned8; | ||
typealias Short = int16; | ||
typealias UShort = unsigned16; | ||
typealias Long = int64; | ||
typealias ULong = unsigned64; | ||
automaton A : Int { | ||
var d1: Int = 291; | ||
var d2: Int = 291; | ||
var d3: Int = 15; | ||
var d4: Int = 10; | ||
var d5: Int = 495; | ||
var d6: Long = 291L; | ||
var d7: Long = 291L; | ||
var d8: Long = 15L; | ||
var d9: Long = 10L; | ||
var d10: Long = 495L; | ||
var d11: Long = 495L; | ||
var plainZero: Int = 0; | ||
var d12: UInt = 255u; | ||
var d13: ULong = 23uL; | ||
var d14: UShort = 23us; | ||
var d15: UByte = 23ub; | ||
var d16: Byte = 23b; | ||
var d17: Short = 23s; | ||
var d18: UInt = 63u; | ||
var d19: ULong = 63uL; | ||
var d20: UShort = 63us; | ||
var d21: UByte = 63ub; | ||
var d22: Byte = 63b; | ||
var d23: Short = 63s; | ||
var d24: UInt = 91u; | ||
var d25: ULong = 91uL; | ||
var d26: UShort = 91us; | ||
var d27: UByte = 91ub; | ||
var d28: Byte = 91b; | ||
var d29: Short = 91s; | ||
var d30: UInt = 4294967295u; | ||
var d31: ULong = 18446744073709551615uL; | ||
var d32: UShort = 65535us; | ||
var d33: UByte = 255ub; | ||
var d34: Byte = -128b; | ||
var d35: Byte = 127b; | ||
var d36: Short = -32768s; | ||
var d37: Short = 32767s; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,56 @@ | ||
libsl "1.0.0"; | ||
library simple; | ||
typealias int = int32; | ||
automaton A : int { | ||
var d1: int = 0X123; | ||
var d2: int = 0x123; | ||
var d3: int = 0B1111; | ||
var d4: int = 0b1010; | ||
var d5: int = 0757; | ||
typealias Int = int32; | ||
typealias UInt = unsigned32; | ||
typealias Byte = int8; | ||
typealias UByte = unsigned8; | ||
typealias Short = int16; | ||
typealias UShort = unsigned16; | ||
typealias Long = int64; | ||
typealias ULong = unsigned64; | ||
automaton A : Int { | ||
var d1: Int = 0X123; | ||
var d2: Int = 0x123; | ||
var d3: Int = 0B1111; | ||
var d4: Int = 0b1010; | ||
var d5: Int = 0757; | ||
|
||
var d6: int = 0X123l; | ||
var d7: int = 0x123L; | ||
var d8: int = 0B1111l; | ||
var d9: int = 0b1010L; | ||
var d10: int = 0757l; | ||
var d11: int = 0757L; | ||
var plainZero: int = 0; | ||
var d6: Long = 0X123l; | ||
var d7: Long = 0x123L; | ||
var d8: Long = 0B1111l; | ||
var d9: Long = 0b1010L; | ||
var d10: Long = 0757l; | ||
var d11: Long = 0757L; | ||
|
||
var plainZero: Int = 0; | ||
|
||
var d12: UInt = 0xFFu; | ||
var d13: ULong = 0x17uL; | ||
var d14: UShort = 0x17us; | ||
var d15: UByte = 0x17ub; | ||
var d16: Byte = 0x17b; | ||
var d17: Short = 0x17s; | ||
|
||
var d18: UInt = 0b111111u; | ||
var d19: ULong = 0b111111uL; | ||
var d20: UShort = 0b111111us; | ||
var d21: UByte = 0b111111ub; | ||
var d22: Byte = 0b111111b; | ||
var d23: Short = 0b111111s; | ||
|
||
var d24: UInt = 0133u; | ||
var d25: ULong = 0133uL; | ||
var d26: UShort = 0133us; | ||
var d27: UByte = 0133ub; | ||
var d28: Byte = 0133b; | ||
var d29: Short = 0133s; | ||
|
||
var d30: UInt = 4294967295u; | ||
var d31: ULong = 18446744073709551615uL; | ||
var d32: UShort = 65535us; | ||
var d33: UByte = 255ub; | ||
var d34: Byte = -128b; | ||
var d35: Byte = 127b; | ||
var d36: Short = -32768s; | ||
var d37: Short = 32767s; | ||
} |