public class RandomPhrase extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
protected static Random |
random |
Constructor and Description |
---|
RandomPhrase() |
Modifier and Type | Method and 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 © 2020. All rights reserved.