-
Notifications
You must be signed in to change notification settings - Fork 0
Chapter 2: Binarify
As stated in Chapter 1 all key-words are converted from regular strings to binary. The last chapter listed all available key-words and their corresponding translations.
As identifiers, values (e.g. strings, numbers, ...) can be completely arbitrary, we need a simple way to convert our human-readable strings to binary (and reverse).
To solve this issue, I've created a simple command-line tool called Binarify.
It's actually quite simple to convert identifiers, strings, numbers,... to binary.
Binarify takes at least 2 arguments. The first argument defines whether to convert binary back to the original string or strings to binary. All subsequent parameters are your values which should be translated.
- -b --to-binary: Converts strings to binary.
- -s --to-string: Converts binary back to the original string.
- -a --arch: Defines internal word size for compilation, interpretation and Binarify. (Default x64-bit)
- AlmostBinary_Binarify.exe --to-binary "hello world" 7362 Main
- AlmostBinary_Binarify.exe --to-string "0000000000000000011100110111100101110011011101000110010101101101"
Binarify will print all converted values to the console.
Binarify is included with the Compiler and is automatically added to the environment variables.