Comments (5)
Sorry, you're alone here. Platform is the way to go
from berry.
Is there some tool that would concatenate all the needed source files into one big berry_all.h
/berry_all.c
that could be included?
from berry.
I haven't used arduino, but from my experience with Visual Studio, it should be sufficient to add all the source files to the project.
It is recommended to look at how the Makefile contains these source files. However, that the src
directory is Berry's core code, while the default
directory is the implementation of the default interpreter program (aka berry.exe). You will need to refer to default
to implement your own interpreter, even if it is simply an evaluation of strings.
from berry.
I haven't used arduino, but from my experience with Visual Studio, it should be sufficient to add all the source files to the project.
I though that would be sufficient too, but unfortunately Arduino is super weird. It copies files to a temp directory before it compiles, and it only copies the files that are right next to the source .ino
file. If I have to try PlatformIO again, I will, and fingers crossed it was a cosmic ray last time and it will work.
If it doesn't work, either I will have to look into sidestepping the Arduino IDE manually and compiling/flashing via command line, or I have a plan B that I will need to finish.
from berry.
I got it working on arduino ide, took me a month with gotchas and finally compiled, my only problem now is how to reuse esp classes and expose them to berry. https://github.com/rjjrbatarao/berry_arduino
from berry.
Related Issues (20)
- Strange GC behaviour HOT 14
- Constructor that take ptr as argument never called HOT 17
- Bad code and parser confusion with closure, upval and assignment with modification HOT 4
- f-strings for Berry HOT 7
- Documentation for the new format strings feature HOT 1
- How does the mqtt module of tasmota berry support will topic and will messages? HOT 1
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT HOT 3
- Support list.map(), list.foreach(), etc HOT 1
- CMake support, clang-format, clang-tidy...
- Standalone && and || trigger infinite loop HOT 3
- Side-effect reassignment of boolean variable HOT 4
- %q format specifier is invalid HOT 3
- class forward call definition problem HOT 3
- Documentation sync HOT 8
- Error messages are sent to stdout instead of stderr HOT 1
- Support `..` shorthand for ranges with increment HOT 2
- Support walrus operator creating new variables + recursive lambda functions HOT 1
- Loading / importing an external script HOT 2
- ternary assign to local variable bug HOT 3
- Adding `string.startswith()` and `string.endswith()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berry.