XBS

所属分类:编程语言基础
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-05-18 16:40:59
上 传 者sh-1993
说明:  XBS编程语言
(XBS Programming language)

文件列表:
deprecated/ (0, 2022-05-18)
deprecated/examples.xbs (5342, 2022-05-18)
deprecated/language.js (80961, 2022-05-18)
deprecated/languagetype.js (155742, 2022-05-18)
deprecated/library.js (5587, 2022-05-18)
deprecated/newexamples.xbs (3659, 2022-05-18)
deprecated/syntaxes.xbs (1259, 2022-05-18)
examples.xbs (2835, 2022-05-18)
examples/ (0, 2022-05-18)
examples/advanced_object_method.xbs (324, 2022-05-18)
examples/businesses.xbs (2537, 2022-05-18)
examples/calculate_e.xbs (123, 2022-05-18)
examples/command_system.xbs (2462, 2022-05-18)
examples/factorial.xbs (156, 2022-05-18)
examples/instance_class.xbs (473, 2022-05-18)
examples/vector.xbs (2203, 2022-05-18)
extensions/ (0, 2022-05-18)
extensions/canvas.js (11115, 2022-05-18)
extensions/html.js (5009, 2022-05-18)
extensions/import.js (3891, 2022-05-18)
images/ (0, 2022-05-18)
images/xbs-icon.svg (1692, 2022-05-18)
images/xbsh-icon.svg (1675, 2022-05-18)
images/xbsh-server-icon.svg (2287, 2022-05-18)
imports/ (0, 2022-05-18)
imports/http.xbs (865, 2022-05-18)
imports/stream.xbs (174, 2022-05-18)
imports/test.xbs (45, 2022-05-18)
library.js (4102, 2022-05-18)
src.js (140549, 2022-05-18)

# XBS ## Questions ### What is XBS? * XBS is an interpreted programming language written in JavaScript with similar syntax design to the following languages: JavaScript and Python. The syntax design mainly stems from JavaScript rather than Python. ### What is the purpose of XBS * The purpose for this language is flexible. I mainly wrote this as a fun project to work on, but also to expand my creativity and other aspects of programming. XBS can be used in just about any web-based client-side application you need it for. *** ## Notes * XBS is not finished. *** ## Features - [x] Declaring & Updating Variables - [x] Indexing & Setting Indexes - [x] Math Operators - [x] Logical & Conditional Operators - [x] If Statement - [x] As Statement - [x] Define Statement - [x] Functions - [x] Varargs & Array Unpacking - [x] Using Statement - [x] Calling Functions - [x] Objects & Arrays - [x] Pipe & EPipe Operators - [x] Send, Stop, and Continue Statements - [x] ACP Operator - [x] Ternary Operator - [x] Bitwise Operators - [x] Unary Negation & Round Operators - [x] While, For, Foreach, Repeat, Each Loop Statements - [x] Destructure Statement - [x] Comment Syntax - [x] Range Operator - [x] Del & Unset Statements - [x] Chunk Statement - [x] Try Statement - [x] Switch Statement - [x] In Operator - [x] Swap Statement - [x] Lockvar Statement - [x] Global Settings - [x] New Statement - [x] Exit Statement - [x] Self-Calling Operator - [x] Classes - [x] Isa Operator - [x] XBS File Extensions - [x] Type System - [x] Settype Statement - [x] TypeCheck Operator - [x] Expressional Strings - [x] Advanced Object Methods *** ## Using XBS ### Load in HTML ```html ``` ### Run Code ```js XBS(Code: string, Environment: {}, Settings: { PrintTokens: boolean, PrintAST: boolean }); ``` Example: ```js XBS(`log("Hello, world!");`,{log:(...a)=>document.write(a.join(" "),"
")}) ``` Returns: ```js { Success: boolean, Error: ?string, Result: any, GlobalSettings: {}, } ```

近期下载者

相关文件


收藏者