ohhmm / skrypt

Serg Kryvonos Relation Yarn Plausibility Tool
MIT License
4 stars 2 forks source link

Indexed access for var/literal content #5

Open ohhmm opened 1 year ago

ohhmm commented 1 year ago

Expression for indexed access is

<var/str>[<idx>][r][<bitness>]

Lets say str - "String"

str[3] is 'i' str[3]r is 'r'

str[3]8 is 'i' str[3]r8 is 'r'

str[2]16 is 'n'+('g'<<8) str[2]r16 is 't'+('S'<<8)

Bitness of non power of two is considerable.