Category: Plain

PScript – Part 9 – Streams

Both Ethernet, UART, USART, USB, SPI, I2C, I2S and CAN might be used as a serial 2-way, buffered byte stream. This is an important abstraction as it allow for an easy, uniform usage of byte streams regardless of underlying technology. To support this I create the same interface on all technologies and an object “stream”…

Read the full article

PScript – Part 6 – Datatypes

I have decided on a set of datatypes that I want to support. bit Bit is a 1 bit data variable. Used as a separate variable it will minimum be 8 bits, but used inside a record it get bit packed. uint8 8 bit unsigned integer int8 8 bit signed integer uint16 16 bit unsigned…

Read the full article

PScript – Part 2 – Expressions

Part 1 defined the core control language, but we need to add expressions – both mathematical and boolean. In doing so I also want to add features that I believe will extend the usage of PScript. Mathematical Operators + Addition – Subtraction / Division * Multiplication () Parenthesis & Bitwise And | Bitwise Or << …

Read the full article

PScript – Part 1 – Core language

The first programming language I learned back in 80’s was BASIC. BASIC was never considered a professional language, but the more modern Visual Basic was and is still in heavy usage as both programming language and scripting language. Python have taken over for a lot of scripting and is making it’s way into heavier applications…

Read the full article