Giter Site home page Giter Site logo

canon's Introduction

// under construction //

canon

about the project

As an embodiment of general problem solving strategy related to term rewriting, Canon aims to be a host for a variety of kinds of formal languages, exhibiting rule-based programming system. For each area of interest, one is able to define a custom domain specific language in a language oriented programming paradigm. Having clearly defined communication input and output forms, Canon performs transition from input to output by additionally defining possibly expressive, functional, and semantic complete set of chaining production rules. This sort of arrangement also sheds light on Canon from an angle of systems theory, thus broadening a possible range of use cases.

expected appearance

To get a glimpse of how (once it is finished) interfacing with canon would look like, we bring the following ruleset:

/*
    dog/cat decision example
    
     input: `*subject* barks/meows`
    output: `*subject* is a dog/cat`
*/

(
    RULE
    (
        BACK
        (RULE (BACK       ) (FORE <<name> barks> <<name> meows>))
        (RULE (BACK <name>) (FORE <...>                        ))
        ...
    )
    (
        CHAIN
        (
            MATCH
            (ID <X> <name>)
            (RULE (FORE <<X> barks>) (BACK <<X> is a dog>))
        )
        (
            MATCH
            (ID <X> <name>)
            (RULE (FORE <<X> meows>) (BACK <<X> is a cat>))
        )
    )
    (
        FORE
        ...
        (RULE (FORE                               <...>) (BACK <name>))
        (RULE (FORE <<name> is a dog> <<name> is a cat>) (BACK       ))
    )
)

Feeding an input Nora meows to the above ruleset should yield the output Nora is a cat, while feeding Milo barks should yield Milo is a dog.

What is really happening is that we try to parse an input string using rules from BACK section of the topmost rule in a forward direction. Then we try to parse the same input string using rules from CHAIN and FORE sections of the topmost rule in a backward direction. If everything goes well, our output then represents the first deepest parsing excerpt consisted only of rules in FORE section of the topmost rule.

current status

A lot of research is invested in creation of canon, and it is still under construction. During its creation journey, it has been an agile experimenting project, advancing its theoretical background with each iteration (curious readers may want to skim over historical documents explaining logos, esperas, exp-log, and exp-flow iterations). The most recent iteration canon draft document is in preparation phase.

Canon will base its functionality on a novel v-parse-cfg algorithm. The canon creation is divided into three successive iterations dealing with term rewriting rules, each being a superset of the previous one. Additional, fourth iteration deals with semantic rhombus interpretation. Here is the current project roadmap with finished marks:

  1. v-parse-crux algorithm (elementary terms interpretation)
  2. v-parse-plus algorithm (composite terms interpretation)
  3. v-parse-star algorithm (term matching interpretation)
  4. forward-chain-backward connection (semantic rhombus interpretation)

If one is interested in details about the preparation for project development, there are some partial resources to check out:

// under construction //

canon's People

Contributors

contrast-zone avatar

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.