Giter Site home page Giter Site logo

davidnemeti / sarcasm Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 36.18 MB

Sarcasm is an SDK for creating typesafe, domain-bound grammars. It also has a grammar driven general unparser.

C# 99.87% PowerShell 0.13%
ast compile-time-safety grammar parser typesafety unparser domain-binding

sarcasm's Introduction

Sarcasm

NuGet NuGet Build License

Summary

Sarcasm is an SDK for creating typesafe, domain-bound grammars. It also has a grammar driven general unparser.

Sarcasm provides the following features:

  • Index-free AST building using domain-grammar bindings.
  • Typesafe AST building using typesafe grammar.
  • Automatic unparsing provided by the general unparser based on the grammar.

In a Sarcasm's domain-bound grammar you can write this e.g.:

binaryExpression.Rule =
    expression.BindTo(binaryExpression, t => t.Term1)
    + binaryOperator.BindTo(binaryExpression, t => t.Op)
    + expression.BindTo(binaryExpression, t => t.Term2)
    ;

For more information see the Documentation. You can start with Introduction.


License information

Sarcasm has been released under the GNU Lesser General Public License (LGPL). It means that you can use it freely as a library even in your prorietary (closed source) software. However, if you copy or modify the whole source code or part of it, that derivate work should also be released under the LGPL.

Hint: if you want to use Sarcasm in your proprietary software, but you need to modify Sarcasm's source code in order to get some extra features, modified behavior or bugfixes, you can simply clone/fork Sarcasm repository, do the changes in the clone repository, release it under LGPL, and use that modified library in your proprietary software, while keeping your proprietary software's source code closed. You can even ask for a pull request to the original Sarcasm repository if your changes are bugfixes, or you find that your extra features, modified behavior should be in the original Sarcasm SDK.

For legal license see License.

For precise, legal license information see License descriptions.

For usable, comprehensible information see LGPL on Wikipedia.

As of Jan 31, 2023, Irony is released under the MIT License, which is even more permissive than LGPL. For more and up to date information see Irony's License. About the MIT License see MIT License on Wikipedia.

sarcasm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kevlyons bubdm

sarcasm's Issues

Utoken revamp

UtokenWhitespace.Text (non parsable, non editable)

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.