RodrigoDornelles / 3bc-lang

Low-level language, tiny virtual machine, minimal runtime, intermediate representation, embeddable, easy for beginners. (Friendly Punched cards)
https://3bc-lang.org
GNU General Public License v3.0
242 stars 27 forks source link

add tty type to arduino serial? #156

Open RodrigoDornelles opened 3 years ago

RodrigoDornelles commented 3 years ago

suggestion that Serial communication can be supported, through appending with a pointer to the HardwareSerial class. So it can be customized by the 3BC implementer as a library when building a firmware in its embedded.

Extends discussion #155

RodrigoDornelles commented 3 years ago

its so hard coding using C89 without needing C++ wrapper, the dificulty is the standard lib arduino framework is written in C++11.

I think about doing something like the STREAM_TYPE_FUNCTION_CALL #174 using macros to leave the script on the C++ frontend side.