antlr/antlr4test-maven-plugin

Name: antlr4test-maven-plugin

Owner: Antlr Project

Description: A maven plugin used to test the grammars-v4 repo grammars

Created: 2017-05-15 18:01:54.0

Updated: 2017-06-05 15:24:23.0

Pushed: 2017-12-15 18:11:46.0

Homepage: null

Size: 64

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Travis Coverity Scan Codacy Badge

antlr4test-maven-plugin

Maven Mojo for testing Antlr4 Grammars

Maven Coordinates
upId>com.khubla.antlr</groupId>
ifactId>antlr4test-maven-plugin</artifactId>
sion>1.6</version>
kaging>jar</packaging>
Example usage
gin>
<groupId>org.antlr</groupId>
<artifactId>antlr4test-maven-plugin</artifactId>
<configuration>
    <verbose>true</verbose>
    <showTree>true</showTree>
    <entryPoint>equation</entryPoint>
    <grammarName>tnt</grammarName>
    <packageName></packageName>
    <testFileExtension>.txt</testFileExtension>
    <exampleFiles>src/test/resources/examples</exampleFiles>
</configuration>
ugin>
Parameters
GrammarName

Required name of the grammar. This should match the name of the grammar defined in the grammar “.g4” file.

mmarName>PHP</grammarName>
caseInsensitiveType

An optional enum parameter used to enable a caseInsensitive lexer for case-insensitive languages such as PHP, Pascal, T-SQL, etc.

Available values:

eInsensitiveType>UPPER</caseInsensitiveType>
entryPoint

Required name of the grammar rule to use as the test entry point

ryPoint>htmlDocument</entryPoint>
enabled

Optional boolean enable-disable flag

bled>true<\enabled>
verbose

Optionally produce verbose output

bose>true</verbose>
showTree

Optionally show the LISP grammar tree

wTree>false</showTree>
exampleFiles

Required relative path to the example files

mpleFiles>src/test/resources/examples/</exampleFiles>
packageName

Optional package name to find the Lexer and Parser classes in

kageName></packageName>
testFileExtension

Optional file extension of test files

tFileExtension>.php</testFileExtension>
fileEncoding

Optional file encoding. The default value if UTF-8.

eEncoding>Shift_JIS</fileEncoding>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.