Answer the question
In order to leave comments, you need to log in
How to make an improved Basic language interpreter?
Good day to all dear residents of the toaster! I wanted to make a minicomputer similar to Elektronika MK-90. I figured out how to make a keyboard, a screen, work with a blue tooth and Wi-Fi, made a layout, figured out which microcontroller would be responsible for what. For example, NodeMcu 8266 with 4 MB of memory is responsible for storing data in non-volatile memory and working with Wi-Fi. Atmega128 is the center of the whole computer. STM32 will be the interpreter for this feisty Basic. All microcontrollers will be flashed with the Arduino Bootloader, since writing firmware in a language similar to assembler is not fun for me. And I need to write an interpreter for the improved Basic so that it can work with special GPIOs. How to do it in the easiest way.
Answer the question
In order to leave comments, you need to log in
Somehow it's hard for you. All this can be done on one stm32.
And the BASIC interpreter is written simply. Lexer, parser, AST, AST bypass and execution. The beauty of BASIC is that you don't have to bother with complex grammar, each syntactic construction fits on one line. You just need to have a stack for nested loops, ifs and other things, I don’t remember this syntax anymore, decades have passed since I wrote something on it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question