sabre:saber编程语言

  • S0_357375
    了解作者
  • 77.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-25 01:28
    上传日期
Sabre编程语言 Sabre是一种无废话(:copyright:)编程语言,它会妨碍您的前进。 它旨在“正常工作”,而不会添加不必要和and肿的语言功能。 为什么还要另一种语言? Sabre的目标是成为一种简单的语言,任何人(初学者和专家)都可以使用。 当然,“无废话的编程语言”是一个高度主观的观点,这个项目是我自己的尝试。 有很多很棒的编程语言,而Sabre并不打算取代其中任何一种。 目前,Sabre只是一种通用玩具语言。 它的主要目标是简单易懂,而不是有效。 例子 // examples/fib.sb fn main() { let num = 10 println(fib(num)) } fn fib(n: int) { if n <= 1 { return n } return fib(n-1) + fib(n-2) } // -> 55
sabre-master.zip
内容介绍
# The Sabre Programming language [![](https://img.shields.io/crates/v/sabre-lang.svg)](https://crates.io/crates/sabre-lang) ![Continuous integration](https://github.com/garritfra/sabre/workflows/Continuous%20integration/badge.svg?branch=master) [![docs](https://img.shields.io/badge/docs-mdBook-blue.svg)](https://garritfra.github.io/sabre/latest) [![Chat on Matrix](https://img.shields.io/badge/chat-on%20Matrix-green)](https://matrix.to/#/#sabre:matrix.slashdev.space?via=matrix.slashdev.space) Sabre is a bullshit-free (©) programming language that gets out of your way. It is meant to "just work", without adding unnecessary and bloated language features. ## Why yet another language? The goal of Sabre is to be a simple language that anyone - beginner and expert - can pick up and use. A "bullshit-free programming language" is of course a highly subjective opinion, and this project is my very own attempt at this. There are plenty of great programming languages out there, and Sabre is not meant to replace any of them. Currently, Sabre is just a general-purpose toy language. Its primary goal is to be simple and easy to understand, not to be efficient. ## Example ```rs // examples/fib.sb fn main() { let num = 10 println(fib(num)) } fn fib(n: int) { if n <= 1 { return n } return fib(n-1) + fib(n-2) } // -> 55 ``` ## State of this project Most algorithms should run fine, but some features may be unstable. Standard library and documentation are still incomplete. See the [open issues](https://github.com/garritfra/sabre/issues) for upcoming todos. The Sabre compiler emits JavaScript for the Node.js runtime, and a C backend is currently under development. Backends for WASM and LLVM are planned. ## Documentation Documentation is hosted [here](https://garritfra.github.io/sabre). ## Getting started See the [installation](https://garritfra.github.io/sabre/latest/introduction/installation.html) instructions to get started. ## Chat on matrix [Get in touch](https://matrix.to/#/!eaupsjLNPYSluWFJOC:matrix.slashdev.space?via=matrix.slashdev.space)! ## License This software is licensed under the [Apache-2.0 license](./LICENSE).
评论
    相关推荐
    • C编程语言
      C编程语言
    • 编程语言教程
      编程语言教程
    • 编程语言课件
      编程语言,包括编程语言这门课程的课件以及部分课程作业。
    • 编程语言
      编程语言
    • 7中编程语言
      这本书是老外写的,七个星期完成七种编程语言,每种语言的学习方法,如何快速掌握,最后通过自己的学习,来实现编写简单的编程语言的书,CS专业老外必须课用书
    • 编程语言搜索
      编程语言搜索
    • hope编程语言
      Hope是一个早期的函数式编程语言,有助于学习函数式编程和λ演算 Hope is a small functional programming language developed in the 1970s at the University of Edinburgh. It predates Miranda and Haskell and ...
    • mlpl:多语言编程语言
      多语言编程语言MLPL被设想为儿童的入门编程语言。 当今使用的大多数编程语言的问题是它们需要英语和字母表方面的知识。 因此,非英语国家的儿童比母语为英语的儿童有更高的进入障碍。 MLPL背后的想法是用非常简单...
    • Go编程语言
      Google出品的Go语言(1.0.3版)语言手册,英文CHM版本。
    • GaussDB_100_1.0.1-DATABASE-REDHAT-64bit.tar.gz
      guassdb100在redhat上安装包,单机部署的包,安装步骤请看我的文中介绍,经过大量实验搭建总结出来的文档