Skip to content

boxbeam/RedLex

Repository files navigation

RedLex

A flexible lexer-generator/parser-combinator library which can generate abstract syntax trees for any context-free format, and parse those abstract syntax trees into objects using provided functions.

Support Discord: https://discord.gg/agu5xGy2YZ

Installation for Development

RedLex can be accessed via JitPack using Gradle or Maven. Read the section for whichever you use below.

Gradle:

repositories {
	maven { url 'https://redempt.dev' }
}

dependencies {
	implementation 'com.github.Redempt:RedLex:Tag'
}

Replace Tag with a version, like 1.0, or a commit hash.

Maven:

<repository>
	<id>redempt.dev</id>
	<url>https://redempt.dev</url>
</repository>
<dependency>
	<groupId>com.github.Redempt</groupId>
	<artifactId>RedLex</artifactId>
	<version>Tag</version>
</dependency>

Replace Tag with a version, like 1.0, or a commit hash.

Usage

For instructions on how to use RedLex, please see the wiki.