A REPL implementation of Emfrp, running on embedded devices.
This is the tested environment.
- Windows 10 or 11
- Visual Studio 2019 or 2022 (Maybe compatible with 2013, 2015, and 2017)
- DragonFly 6.2.2
- gcc 8.3 (also clang)
- Haiku R1/beta hrev55181+67
- gcc 11.2
- Debian 12 bookworm
- clang-13 or above
- macOS 13 Ventura
- MacBook Air (M1, 2020)
We recommend to use clang-format version 13 for formatting.
- Execute
script/setup-?.shas a privilaged user.
FreeBSD and DragonFly: setup-bsd.sh
Debian: setup-apt.sh
macOS: setup-macos-brew.sh (brew required)
Haiku OS: setup-haiku.sh - Open
example/unix/. $ cmake -B build$ cd build$ make$ ./emfrp-repl
- Install Visual Studio 2022 or newer(with C++ Desktop Development workload) and CMake support.
- Open
example/windows/CMakeLists.txt. - Build and debug!
- Install Visual Studio 2019 or newer(with C++ Desktop Development workload) and CMake.
- Open
example/windows/. > cmake -B build.- Open
example/windows/build/emfrp-repl.sln. - Build and debug!
- Build Emfrp-REPL following the instructions above.
- Run
example/python-gui/emfrp-repl-gui.pywith Python 3.x.
You need esp-idf SDK. available on: https://github.com/espressif/esp-idf
Execute install.ps1, or install.sh in the esp-idf repository.
- Execute
export.ps1, orexport.ps1in the esp-idf repository. - Execute
example/esp-idf/gen_parser.bat, orexample/esp-idf/gen_parser.sh. You need to execute these files if you rewriteparser.peg. This comes from esp-idf CMake Project System's limitations. - Open
example/esp-idf - Execute
idf.py set-target <target-board>in your first time. - Execute
idf.py buildand flashidf.py flash, and then monitor byidf.py monitor.
DOES NOT WORK DUE TO A LINKER ISSUE.
You need Zephyr. Please install following the instruction: https://docs.zephyrproject.org/latest/develop/getting_started/index.html
- Move to
example/microbitv2-zephyr. - Run
west init.
- Move to
example/microbitv2-zephyr. - Run
west build. - Run
west flash.