https://github.com/mattmezza/reminder-lang
The Reminder Lang
https://github.com/mattmezza/reminder-lang
calendar events language lexer parser reminder
Last synced: about 1 year ago
JSON representation
The Reminder Lang
- Host: GitHub
- URL: https://github.com/mattmezza/reminder-lang
- Owner: mattmezza
- License: mit
- Created: 2017-03-28T23:16:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T19:21:12.000Z (about 9 years ago)
- Last Synced: 2025-02-13T15:36:37.943Z (over 1 year ago)
- Topics: calendar, events, language, lexer, parser, reminder
- Language: Java
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
The Reminder Lang
======
This is a language for reminders.
#### Usage
`compile 'me.matteomerola.reminderlang:reminderlang:0.1.0'` with `jcenter()` in the repositories.
```java
List tokens = ;
try {
String text = "\"Buy milk\" tomorrow at 17";
Parser parser = new Parser(text, Lexer.lex(text));
Reminder r = parser.parse();
} catch (ParseException e) {
// ...
}
```
#### Sample
Run the sample in this way
- `git clone https://github.com/mattmezza/reminder-lang.git .`
- `./gradlew --console plain :sample:run`
- launches the interpreter: write your reminder
- the interpreter will print out the parsed reminder
###### © Matteo Merola