Git Product home page Git Product logo

lexem's Introduction

Lexem language

THIS IS A WORK IN PROGRESS!! DON'T USE LEXEM IN PRODUCTION!!

Lexem is a script language which has the ability to parse textual inputs based on custom grammars. Like Regular Expressions, Lexem allows the developer to define specific sequences of tokens that define the grammar Lexem must follow to parse the inputs.

On one hand, Lexem is a declarative language that allows to define how the input must be parsed but, on the other hand, it is also a pure functional language, i.e. like C or JavaScript, Lexem has functions, object, etc.

Thus, Lexem has implemented in its core a complex backtracking system that allows to reset the execution to any past state, including all functional state, like variable values.

To sum up, Lexem is able to analyze:

  • Serialized binary data.
  • Context-free grammars, like programming languages.
  • Context-sensitive grammars, like natural languages.

To finally return a tree-like document with the result of the analysis, normally JSON (but XML is also supported).

To perform these jobs, Lexem is composed by two sections or cores:

  • Descriptive core: this section defines how the input text will be captured, e.g. something like "in this position a period . must be found followed by an identifier".
  • Functional core: this section is like any other scripting language and allows to control the descriptive section to adapt it depending on the context.

Both are joined in a way that can be used at the same time with no conflicts improving the functionality of Lexem.

Documentation

To know more about Lexem see one the following sections:

Contributing

If you want to contribute, make an issue request using the most suitable pattern for your request, or mail us through [email protected].

lexem's People

Contributors

juliotpaez avatar

Stargazers

 avatar

Watchers

 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.