-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
12 changed files
with
82 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
## jlexing | ||
|
||
A package containing various types commonly used in [lexical analyzers](https://en.wikipedia.org/wiki/Lexical_analysis) | ||
and parsers. | ||
|
||
## Features | ||
|
||
* | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Motivation | ||
|
||
Many [io7m](https://www.io7m.com/) projects contain hand-written parsers | ||
and lexers. The `jlexing` package exists to declare common lexer types so | ||
that nearly-identical versions of those types don't have to be repeatedly | ||
written for every project. | ||
|
||
## Usage | ||
|
||
The `LexicalPositionType` represents a span in a region of text. It includes | ||
a mutable builder for constructing immutable `LexicalPosition` values: | ||
|
||
``` | ||
final LexicalPosition.Builder<Path> b0 = | ||
LexicalPosition.builder(); | ||
|
||
b0.setLine(23); | ||
b0.setColumn(24); | ||
b0.setColumnEnd(30); | ||
b0.setFile(Optional.of(path0)); | ||
b0.setFile(path1); | ||
|
||
final LexicalPosition<Path> p = | ||
b0.build(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
com.io7m.jlexing.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...o7m.jlexing.documentation/src/main/java/com/io7m/jlexing/documentation/Documentation.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...io7m.jlexing.documentation/src/main/java/com/io7m/jlexing/documentation/package-info.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.