public class RandomPhrase extends Object
Modifier and Type | Field | Description |
---|---|---|
static boolean |
debug |
|
protected static Random |
random |
Constructor | Description |
---|---|
RandomPhrase() |
Modifier and Type | Method | Description |
---|---|---|
protected static Integer |
getTokenType(Label label) |
|
static void |
main(String[] args) |
Used to generate random strings
|
protected static void |
randomPhrase(Grammar g,
List<Integer> tokenTypes,
String startRule) |
an experimental method to generate random phrases for a given
grammar given a start rule.
|
public static final boolean debug
protected static Random random
protected static void randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule)
public static void main(String[] args)
Copyright © 1992–2019 ANTLR. All rights reserved.