当前位置:网站首页>My-basic application 1: introduction to my-basic parser
My-basic application 1: introduction to my-basic parser
2022-07-05 08:03:00 【Changjiang houlang blog】
MY-BASIC is a lightweight BASIC interpreter written in standard C in dual files.
//MY-BASIC It's a lightweight BASIC Interpreter , Using standard C Language is written in two files .
It's aimed to be embeddable, extendable and portable.
// Its goal is to be embeddable 、 Scalable and portable .
It is a dynamic typed programming language,reserves structured syntax,
// It's a dynamically typed programming language , Preserve structured syntax
supports a style of prototype-based programming (OOP),
// Support a prototype based programming style (OOP)
also implements a functional paradigm by lambda abstraction.
// And through lambda Abstract realization of function paradigm .
The core is written in a C source file and an associated header file.
// The core is in a C Source file and a related header file .
It's easy to either use it as a standalone interpreter or embed it with existing projects in C, C++, Java, Objective-C, Swift, C#, etc.
and totally customizable by adding your own scripting interfaces.
It can be used as an independent interpreter ,
It can also be embedded into existing C、c++、Java、Objective-C、Swift、c# Etc ,
And it can be completely customized by adding its own script interface .
Main features
Main features
MY-BASIC offers a wide range of features including:
MY-BASIC Provide a wide range of functions , as follows :
Written in standard C, source code is portable to a dozen of platforms
// Using standard C The source code can be ported to more than a dozen platforms
Lightweight (within less than 128KB footprint), fast, and configurable
// Lightweight ( Less than 128KB Memory footprint )、 Fast and configurable
With both retro and modern BASIC syntax
// With retro and modern basic grammar
Case-insensitive tokenization, and many other indelible BASIC flavour
// Case insensitive tags , And many others BASIC Indelible elements
Unicode support
//Unicode Support
Prototype-based programming, with reflection support
// Prototype based programming , Support reflection
Lambda abstraction enhanced functional programming
//Lambda Abstraction enhances functional programming
Customizable referenced/non-referenced usertype
// Customizable references / Non reference usertype
Collection construction and manipulation functions for LIST and DICT
// For lists and DICT Set construction and operation functions of
Automatic releasing for referenced values (prototype, lambda, referenced usertype, list, dictionary, etc.) benefited from reference counting and garbage collection
// For reference value ( Prototype 、lambda、 Refer to the usertype、 list 、 Dictionary, etc ) The automatic release of benefits from reference counting and garbage collection
Common numeric and string functions
// Common numeric and string functions
Structured sub routine definition with the DEF/ENDDEF statements
// Use DEF/ENDDEF Statement defines a structured subroutine
Structured IF/THEN/ELSEIF/ELSE/ENDIF
// structure :IF/THEN/ELSEIF/ELSE/ENDIF
Structured FOR/TO/STEP/NEXT, FOR/IN/NEXT, WHILE/WEND, DO/UNTIL
// structure :FOR/TO/STEP/NEXT, FOR/IN/NEXT, WHILE/WEND, DO/UNTIL
Reserved retro GOTO, GOSUB/RETURN
// Preserved retro GOTO, GOSUB/RETURN
Importing multiple source files with the IMPORT statement
// Use IMPORT Statement to import multiple source files
Debug API
// debugging API
Customizable memory pool
// Customizable memory pool
Easy API, for extending new BASIC functions
// ordinary API, Used to extend new basic functions
Easy interacting BASIC facilities at native side, and vice versa
// Easy to interact with basic facilities on the local side , vice versa
More features under development
// More features are under development
边栏推荐
- Consul installation
- Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
- Extern keyword function
- 1089 Insert or Merge 含测试点5
- Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
- Interview catalogue
- C language uses arrays to realize the intersection, union, difference and complement of sets
- C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
猜你喜欢
如何进行导电滑环选型
Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
Realization of binary relation of discrete mathematics with C language and its properties
Step motor generates S-curve upper computer
Record the opening ceremony of Beijing Winter Olympics with display equipment
Train your dataset with yolov4
研究发现,跨境电商客服系统都有这五点功能!
Markdown tips
Network communication process
随机推荐
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
C WinForm [exit application] - practice 3
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
Consul installation
Global and Chinese market of blackbody calibration source 2022-2028: Research Report on technology, participants, trends, market size and share
Random function usage notes
UEFI development learning series
.NET服务治理之限流中间件-FireflySoft.RateLimit
Improve lighting C program
Volatile of C language
Hardware and software solution of FPGA key chattering elimination
MySQL blind note common functions
Relationship between line voltage and phase voltage, line current and phase current
Basic embedded concepts
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
C language enhancement -- pointer
Global and Chinese market of plastic recycling machines 2022-2028: Research Report on technology, participants, trends, market size and share
Bootloader implementation of PIC MCU
C WinForm [view status bar -- statusstrip] - Practice 2
[professional literacy] specific direction of analog integrated circuits