public void ImportDeclaration(JSGFRuleGrammar grammar) { bool all = false; String name; Token t = null; t = jj_consume_token(Import); jj_consume_token(28); name = Name(); switch ((_jj_ntk == -1) ? jj_ntk() : _jj_ntk) { case 29: jj_consume_token(29); jj_consume_token(30); all = true; break; default: jj_la1[5] = jj_gen; break; } jj_consume_token(31); jj_consume_token(26); // import all rules if .* if (all) { name = name + ".*"; } JSGFRuleName r = new JSGFRuleName(name); if (grammar != null) { grammar.AddImport(r); if (grammar is JSGFRuleGrammar && t != null && t.SpecialToken != null) { if (t.SpecialToken.Image != null && t.SpecialToken.Image.StartsWith("/**")) { JSGFRuleGrammar JG = grammar; JG.AddImportDocComment(r, t.SpecialToken.Image); } } } }