Git Product home page Git Product logo

seanpm2001 / blockql Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 1007 KB

๐ŸŸฅ๏ธ๐ŸŸฉ๏ธ๐ŸŸฆ๏ธ BlockQL is a block-based programming language designed for querying.

Home Page: https://github.com/seanpm2001/BlockQL_Docs

License: GNU General Public License v3.0

HTML 0.25% Rust 99.75%
block-based-programming block-language gpl3 gplv3 home-repository md programming-language ql query-language rust

blockql's Introduction


BlockQL

BlockQL is a block-based programming language specializing in queries and spreadsheets. It is my first attempt at a block-based programming language. It is implemented in Rust.

Queries can be written in:

  • C
  • CodeQL
  • D
  • Java
  • Python
  • R
  • Rust
  • VBA
  • More languages coming soon

Spreadsheets can also be imported in the following formats:

  • *.dbf
  • *.dif
  • *.fods
  • *.ods
  • *.ots
  • *.slk
  • *.uos
  • *.xlsx
  • *.xls
  • More formats coming soon

File format

BlockQL has 2 file formats:

  • *.bloql (project file, shortened form of BlockQL, official pronunciation is block L)
  • *.bloqs (spreadsheet file, official pronunciation is blocks)

Syntax

Hello World

"Hello World"

Basic query

-- DEF Coin = integer(250)
import shop
usr: "ANNA" has "Banana"
usr: "ABBY" has "Coin{12}"
usr: "SHOP" has "Banana{tc:250{Coin}}"
-- tc: Total cost
join "ABBY","SHOP"
return "SHOP" getResponse "Purchase"
-- Should return:
"SHOP: User ABBY cannot buy the banana, ABBY needs 238 more coins"

Note shop is a demo library that has noty yet been created.

Comments

-- Single line comment
-=-
Block Comment
-=-

Needs more planning, language might be rewritten.


File version: 1 (2023, Tuesday, March 28th at 7:34 pm PST)


blockql's People

Contributors

seanpm2001 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

seanwallawalla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.