private void playMenu() {		
		int choice = this.menus.run(MainMenu.IDENTIFIER);
		
		if (choice == MainMenu.ANALYZE) {
			String grammar = this.getGrammar();
			if (!this.validateGrammar(grammar))				
				return;
			this.analyze(grammar);
		} else if (choice == MainMenu.TRANSFORM) {
			String grammar = this.getGrammar();
			GrammarTransformation transformation = this.getGrammarTransformation();
			if (!this.validateGrammar(grammar))				
				return;
			this.transform(grammar, transformation);
		} else if (choice == MainMenu.PARSE) {
			String grammar = this.getGrammar();
			String word = this.getWord();
			ParserType parser = this.getParser();
			if (!this.validateGrammar(grammar))				
				return;
			this.parse(grammar, word, parser);
		} else if (choice == MainMenu.HELP) {
			this.help();
		} else if (choice == MainMenu.QUIT) {
			this.quit();
		} else {
			this.getOutput().onWarning("Unrecognized choice\n");
		}
	}