Git Product home page Git Product logo

ligature-specification's Introduction

I'm currently working on a FLOSS knowledge graph project called Ligature and a scripting language called Wander. They are both still under heavy development, but see the websites and pinned repos for more info. Right now I'm mostly focusing on Rust code but I also have an interest in F#, Scala, TypeScript, and Kotlin.

ligature-specification's People

Contributors

almibe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ligature-specification's Issues

old notes from almibe/wander project

Small Steps to Work on Stroll

  • am I sure I want to make it required to put #read or #write at top of script?
  • I think there are only two ways to modify the datastore in a script ($.add & $.remove) so it could be detected
  • I should probably leave that out since it's kind of weird/will lead to annoying problems when developing scripts
  • first support comments and empty scripts
  • update grammar in stroll-grammar
  • update parser/ast in stroll & test
  • add example scripts & tests (an empty script or script with just comments should return a JsonNull JsonElement)
  • then start supporting @Prefix and @base statements
  • test error conditions like declaring more than one base or overriding a prefix name
  • then start supporting basic let statements
  • literal types to support
    • string
    • numbers (figure out how I want to handle numbers ie what/how many types there are)
    • iri (a regular one and ones that test prefix and base as well)
    • statements (with default graph and named graph -- also test supporting the a keyword within a statement)
    • pairs (via the 'to' keyword)
    • ranges (via the '..' operator)
    • anything else?
  • update grammar/parser/ast/tests along the way
  • test error conditions/corner cases
    • let = #no assigment
    • multi-line let
    • assigning a let twice
    • assigning without let
    • invalid iris and statements
    • invalid strings
    • invalid ranges
    • invalid pairs
    • use a variable to create another variable
  • add support for return statements
    • return all literal types
    • return variables
  • test corner cases
    • return return #should be an error
    • multiple return statements in a row (I think this should be fine since a script just exits when it reaches the first return statement)
    • return by itself should return JsonNull
  • add support for function calls
    • initial support should parse and build ast but running scripts should always result in errors
  • add support for method calls
    • initial support should parse and build ast but running scripts should always result in errors
  • start to add support for collection types
    • test initialization (via function calls) and returning them (should return correct JsonElement with values)
    • test method calls (figure out apis & document & test)
  • add support for graph data type
    • test initialization and return them (should return a set of statements)
  • add support for $ variable
    • test supported methods & non-existing ones
    • returning the $ should return a set of statements
    • assigning $ should be an error
    • changes to $ should persist across script calls
  • add support for lambdas
    • test defining
    • test calling
    • return a lambda should be an error
    • returning a call to a lambda should return the result of the lambda
    • test cardinality
  • add support for when expressions
    • ...
  • add support for functions supported by SPARQL
    • ...
  • add support for calling external services (web services + SPARQL endpoints)
  • add support for math and string manipulation (first figure out how to do this)
  • what else???

Remove Ligature HTTP

I don't think it makes sense to include this as part of the spec and instead for now http api access should be designed per specific application.

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.