/rats-maven-quickstart

Using the Rats! parser generator with Maven

Primary LanguageJava

Introduction

Using the Rats! parser generator from xtc project with Maven.

The example is based on the article Introduction to the Rats! Parser Generator.

See the generated parser in action:

  • mvn compile exec:java -Dexec.args=9-3+5 to convert the provided argument from infix to postfix notation.

Note: Only digits are supported (no numbers). The grammar is kept as simple as possible for demonstration purposes.