4647484950515253545556
@Test public void inlineGram() { String words = "kenny cartman [ter phil] (mister hat) (big gay al) [wendy]"; InlineGrammar gram = new InlineGrammar(words); ArrayList<String> L = gram.wordList(); // for(String s : L) { // System.out.println(s); // }
3031323334353637383940
public SROChoice(String subject, String gtext) { super(subject); InlineGrammar gram = new InlineGrammar(gtext); m_choiceL = gram.wordList(); } public SROChoice(String subject, ArrayList<String> choiceL) { super(subject); m_choiceL.addAll(choiceL);