1 Star 0 Fork 0

Steven Yang/StrawberryBASIC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

StrawberryBASIC

ver 0.01a18

StrawberryBASIC

原创现代化编程语言StrawberryBASIC和它的解释器(建设中)

A BRAND-NEW INTERPRETOR OF BASIC PROGRAMMING LANGUAGE (UNDER CONSTRUCTION)

已经实现了基本表达式(算术/逻辑/比较运算)、赋值、重新赋值、If-ElseIf-Else语句、While循环、Do-Loop循环、For循环、 Break语句、Continue语句、Sub定义过程、Exit Sub语句、Function自定义函数、Return语句、面向对象开发进行中!

  • 语法和教程请参考仓库中的最新版本用户手册pdf,该手册假定你至少已经粗略地学过微软公司的Visual Basic(或者.Net版)、FreeBASIC或PowerBASIC等其中一种BASIC的实现
  • BASIC语言是Beginners' All-purpose Symbolic Instruction Code的缩写,一般译为“初学者通用符号指令代码”,主打易学性和易用性
  • StrawberryBASIC语言是BASIC语言的方言,但大体上是一样的

开发环境:

  • Ubuntu >= 20.04.1
  • GCC/Flex/Bison
  • 本软件使用ANSI C标准开发。如果有意愿,也容易移植到Windows平台、LLVM的Clang编译器等其他平台或编译器。

编译安装(Ubuntu):

  • make flex
  • make bison
  • make production

配置系统变量

  • export LD_LIBRARY_PATH=编译好的lib路径:$LD_LIBRARY_PATH

用标准输入流运行脚本(Ubuntu):

  • ./BASIC < ../test/Testcase1.basic
  • ./BASIC < ../test/Testcase2.basic
  • ./BASIC < ../test/Testcase3.basic
  • ./BASIC < ../test/Testcase4.basic
  • ./BASIC < ../test/Testcase5.basic
  • ./BASIC < ../test/Testcase6.basic
  • ./BASIC < ../test/Testcase7.basic
  • ./BASIC < ../test/Testcase8.basic

开发/手册/美术:

  • Steven Yang(杨泰然)@steven-yang-blue

感谢无私的开源组件贡献者

ACKNOWLEDGEMENT TO THE WORD-WIDE OPEN-SOURCE CONTRIBUTORS

  • Przemo Nowaczyk(波兰)
  • Dane Larsen(美国)
  • Seungyoung Kim 金承英(韩国)Team 团队

PS. Generally and hopefully, I push the project to Gitee and GitHub synchronously. But in the view of the Internet content arguments between China and US, leading to the off and on network, GitHub version would probably be delayed of releasing. If you are eager to checkout the latest update, you may visit Gitee (a Chinese-mainland GitHub) version which the URL is given below.

https://gitee.com/steven-yang-blue/strawberry-basic

BSD 3-Clause License Copyright (c) 2023, Steven Yang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

StrawberryBASIC和它的解释器(逐渐和Waxberry VM合并) 展开 收起
README
BSD-3-Clause
取消

发行版

暂无发行版

贡献者 (2)

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/steven-yang-blue/strawberry-basic.git
git@gitee.com:steven-yang-blue/strawberry-basic.git
steven-yang-blue
strawberry-basic
StrawberryBASIC
master

搜索帮助