Gordon Williams
138452fb65
Merging Dickens-specific changes into master
2023-09-27 14:57:47 +01:00
Gordon Williams
fd62aece7d
tidy up output by only outputting callfunction hack if required
...
Improve jswIsBuiltInObject implementation so it doesn't store separate strings - saves ~200b
2023-05-17 12:35:23 +01:00
Gordon Williams
9794ebcbae
Fix ordering of Pin check in wrapper (so autocomplete and Pin prototype works)
2023-04-21 10:48:42 +01:00
Gordon Williams
e1b39f5d30
Removing some compiler warnings
2023-04-21 09:57:56 +01:00
Gordon Williams
98cd788356
Removing some compilation warnings, potentially also fixing toUpper/LowerCase for non-ASCII characters
2023-04-20 15:02:26 +01:00
Gordon Williams
eb9cd93bcf
Fix issue that meant that only one builtin library could ever be added
2023-02-23 13:55:58 +00:00
Gordon Williams
0372674fbc
Add ability to add custom boot code inside the build with JSMODULESOURCES+=_:bootfile.js
2023-01-24 15:23:56 +00:00
Dimo Bozduganov
46310cbdc5
Modify to build EMBED board with -Werror flag
2022-12-21 09:29:17 +02:00
Gordon Williams
18fd3d6048
Initial proof of concept of 'embeddable' subset of Espruino to include in other apps without dependencies
2022-12-07 16:26:33 +00:00
Gordon Williams
f220e81600
oops - fix build
2022-07-28 15:53:00 +01:00
Gordon Williams
6e19468837
python 3 build tweak
2022-02-21 16:01:51 +00:00
Gordon Williams
318a44504e
Speed up jswGetBasicObjectName by putting all ArrayBuffer checks together
2022-02-01 10:33:26 +00:00
Gordon Williams
4a7d30f4be
Bangle.js: Add 'graphicsInternal' to make Graphics independent of JS vars. Terminal is now useful earlier, and can display softdevice errors
2022-01-31 16:35:38 +00:00
Gordon Williams
100ada0f6f
Merge branch 'master' into experimental_compact_vars
2021-08-05 15:37:01 +01:00
Gordon Williams
b5894621c0
Misc merge of Dickens changes to bring branches more in line
2021-05-13 12:26:41 +01:00
Gordon Williams
b8604130be
Ensure Micro:bit blocklist takes effect, drop palette interpreting in extremely low flash builds, general micro:bit v1 build fixes
2021-04-13 13:53:40 +01:00
Gordon Williams
7b036adb65
Merge branch 'master' into experimental_compact_vars
...
# Conflicts:
# Makefile
# boards/LINUX.py
# libs/graphics/jswrap_graphics.c
# src/jsvar.h
2020-10-29 10:01:17 +00:00
Gordon Williams
426ac06a62
Ensure software SPI/I2C/Serial don't leak a variable when initialised
2020-08-31 12:45:16 +01:00
Gordon Williams
823fd9aeff
Merge branch 'master' into experimental_compact_vars
...
Also enable the callfunction hack for i386
# Conflicts:
# boards/LINUX.py
2019-12-10 15:17:46 +00:00
Gordon Williams
e69770722a
Added ability to compile Espruino to JavaScript with Emscripten
2019-11-25 12:16:30 +00:00
Gordon Williams
720738944f
Add E.showMenu, deprecate Pixl.menu - use a common function to ease porting between devices
2019-10-31 11:23:04 +00:00
Gordon Williams
d61f9f5bcb
New palette, ability to define code to execute on Serial events, GPS data line handling
2019-09-19 17:56:09 +01:00
jumjum123
8e884bf8cf
Added remove blacklist for class and instanceof in build_jswrapper.py (function removeBlacklistForWrapper)
2019-07-08 13:26:52 +02:00
jumjum123
201535cf7c
Added wildcard for blacklist
...
Used to blacklist full class
2019-04-09 11:28:26 +00:00
Gordon Williams
b0ea012c82
Allow built-in objects to be created with new X()
2018-11-23 12:28:30 +00:00
Gordon Williams
7ae9af8f6c
Build tools
2018-06-15 15:34:03 +01:00
Gordon Williams
67b2123bdb
Add ArrayBuffer.byteLength property ( fix #1374 )
2018-04-16 09:22:23 +01:00
Gordon Williams
b78888c9e1
Simplify data returned by process.env
...
Add process.env.MODULES - to contain a list of the libraries provided in the firmware by require
2018-02-07 14:22:52 +00:00
Gordon Williams
59bc2019b3
formatting tweak
2018-02-06 12:01:50 +00:00
Gordon Williams
f3ba1023ff
Allow JS modules to be built-in by adding files to JSMODULESOURCES
2018-01-16 13:14:38 +00:00
Gordon Williams
b80ec646f2
reusing a bit more code in jswFindBuiltInFunction
2017-12-15 11:21:18 +00:00
Gordon Williams
aba4d91d53
reusing a bit more code in jswFindBuiltInFunction
2017-12-15 11:14:17 +00:00
Gordon Williams
6e08b61686
tidy up jswGetSymbolListForObject code
2017-12-15 11:06:24 +00:00
Gordon Williams
9f4e747e04
sanity check on args - helps #1271
2017-12-14 17:05:56 +00:00
Gordon Williams
6cc0d46eb9
Fix tab complete for Pins ( fix #1213 )
2017-08-14 13:04:54 +01:00
Gordon Williams
a70032741d
Move LED + BTN definitions to Symbol Table (allows autocomplete)
2016-10-17 15:52:42 +01:00
Juergen Marsch
f293a5d579
Blacklist extended for Javascript commands
...
Javascrip commands have no class information in JSON description. This
was not handled in old version.
In this version an artificial class "--" is used to support blacklisting
them.
If you don't want to have console.log or eval, for whatever reason, this
can be blacklist now.
2016-07-22 14:02:05 +02:00
Juergen Marsch
210797cedf
Add options for make process
...
Adds customizing options, see description in makefile.
Idea is to support userdefined make of firmware
- GENDIR
- SETDEFINES
- UNSUPPORTEDMAKE
- PROJECTNAME
- BLACKLIST
- VARIABLES
2016-06-17 11:36:59 +02:00
Thorsten von Eicken
949cd7d33b
final fix for jswsym strcmp; change flash magic
2016-04-20 21:40:57 -07:00
Thorsten von Eicken
1ae38015e5
collapse two versions of jswBinarySearch into one
2016-04-19 19:42:18 -07:00
Thorsten von Eicken
2c8c866f1b
esp8266: exception code cleanup; jswsym code cleanup; eliminate compiler warnings
2016-04-17 09:46:32 -07:00
Thorsten von Eicken
4885b28bf2
clean-up esp8266 PR to move symbols to flash
2016-04-17 09:11:12 -07:00
Thorsten von Eicken
2c3f6f76b7
esp8266: small tweaks to moving jswsyms to flash
2016-04-16 23:28:10 -07:00
Thorsten von Eicken
1b4c8c691e
move wrapper symbol tables to flash on esp8266; bump to 1600 jsvars
2016-04-16 11:57:06 -07:00
Gordon Williams
b3fbc05def
autocomplete for properties
2015-10-22 19:08:58 +01:00
Gordon Williams
6d1495ddce
and this is why I don't like python
2015-10-20 16:03:26 +01:00
Neil Kolban
d322cc7d67
Change print "XXX" to print("XXX")
...
Change the python scripts to add parenthesis to print statements.
2015-08-27 14:19:19 -05:00
Gordon Williams
070b44ed9f
Added 'global' built-in value
2015-02-10 15:58:41 +00:00
Gordon Williams
32918505e2
Ensure that we only create as many Serial/I2C/etc items in Symbol table as we need ( fix #453 )
2014-12-19 11:53:51 +00:00
Gordon Williams
acb068e965
Remove libraries from root scope ( fix #463 )
2014-12-11 15:51:50 +00:00