Get the latest tech news

Berry Script: lightweight embedded scripting language for microcontrollers


Berry is a ultra-lightweight dynamically typed embedded scripting language. It is designed for lower-performance embedded devices.

The Berry interpreter-core's code size is less than 40KiB and can run on less than 4KiB heap (on ARM Cortex M4 CPU, Thumb ISA and ARMCC compiler). Simple and natural syntax, support garbage collection, and easy to use FFI (foreign function interface). Base Type Nil: nil Boolean: true and false Numerical: Integer ( int) and Real ( real) String: Single quotation-mark string and double quotation-mark string Class: Instance template, read only Instance: Object constructed by class Module: Read-write key-value pair table List: Ordered container, like[1, 2, 3] Map: Hash Map container, like{ 'a': 1, 2: 3, 'map': {} } Range: include a lower and a upper integer value, like 0..5

Get the Android app

Or read this on Hacker News

Read more on:

Photo of microcontrollers

microcontrollers

Photo of Berry Script

Berry Script

Related news:

News photo

How AI on Microcontrollers Works: Operators and Kernels

News photo

Show HN: openai-realtime-embedded-SDK Build AI assistants on microcontrollers

News photo

Nyquest NY8A051H – 1.5 cent microcontroller: weekend die-shot