HomeSort by relevance Sort by last modified time
    Searched refs:Grammar (Results 101 - 125 of 141) sorted by null

1 2 3 45 6

  /packages/apps/VoiceDialer/src/com/android/voicedialer/
RecognizerEngine.java 40 * <li>Set up the grammar using setupGrammar.
76 protected Recognizer.Grammar mSrecGrammar;
98 * <li>set up the grammar (implementation is in child class)
126 // destroy the grammar and regenerate.
CommandRecognizerEngine.java 47 * <li>Scans contacts and determine if the Grammar g2g file is stale.
48 * <li>If so, create and rebuild the Grammar,
49 * <li>Else create and load the Grammar from the file.
94 // if we change the contacts file, then we need to recreate the grammar.
109 // if we change this setting, then we need to recreate the grammar.
130 // generate g2g grammar file name
136 // clean up existing Grammar and old file
143 // load the empty Grammar
144 if (false) Log.d(TAG, "start new Grammar");
145 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/VoiceDialer.g2g")
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DOTGenerator.java 32 import org.antlr.grammar.v3.ANTLRParser;
56 protected Grammar grammar; field in class:DOTGenerator
58 /** This aspect is associated with a grammar */
59 public DOTGenerator(Grammar grammar) {
60 this.grammar = grammar;
213 if ( rr.rule.grammar != grammar ) {
    [all...]
LeftRecursiveRuleAnalyzer.java 4 import org.antlr.grammar.v3.*;
16 public Grammar g;
33 public LeftRecursiveRuleAnalyzer(TreeNodeStream input, Grammar g, String ruleName) {
208 ruleST.add("buildAST", grammar.buildAST());
302 return new ANTLRTreePrinter(new CommonTreeNodeStream(t)).toString(grammar, true);
336 AttributeScope returnScope = grammar.createReturnScope("",t);
  /external/chromium_org/third_party/WebKit/Source/core/editing/
SpellChecker.cpp 250 // If we found neither bad grammar nor a misspelled word, wrap and try again (but don't bother if we started at the beginning of the
283 // We found bad grammar. Since we only searched for bad grammar up to the first misspelled word, the bad grammar
284 // takes precedence and we ignore any potential misspelled word. Select the grammar detail, update the spelling
295 m_frame.document()->markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, grammarDetail.userDescription);
297 // We found a misspelling, but not any earlier bad grammar. Select the misspelling, update the spelling panel, and store
388 // Check grammar of entire sentence
398 // grammar checking can only be on if spell checking is also on.
582 badGrammarRange->startContainer()->document().markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription, result->hash)
    [all...]
SpellCheckRequester.cpp 254 markers.remove(DocumentMarker::Grammar);
TextCheckingHelper.cpp 321 // Iterate through the search range by paragraphs, checking each one for spelling and grammar.
356 // We can't stop after the first grammar result, since there might still be a spelling result after
357 // it begins but before the first detail in it, but we can stop if we find a second grammar result.
415 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
435 badGrammarRange->startContainer()->document().markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription);
459 // Expand the search range to encompass entire paragraphs, since grammar checking needs that much context.
481 // Found some bad grammar. Find the earliest detail range that starts in our search range (if any).
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DecisionProbe.java 30 import org.antlr.grammar.v3.ANTLRParser;
35 import org.antlr.tool.Grammar;
320 Grammar g = dfa.nfa.grammar;
325 if ( it.hasNext() && g.type!=Grammar.LEXER ) {
368 dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,a);
373 NFAState altStart = dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,alt);
430 while ( it.hasNext() && !dfa.nfa.grammar.NFAToDFAConversionExternallyAborted() ) {
447 d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber);
481 dfa.nfa.grammar,
    [all...]
DFA.java 40 /** A DFA (converted from a grammar's NFA).
76 /** The printable grammar fragment associated with this DFA */
132 /** Each alt in an NFA derived from a grammar must have a DFA state that
190 * if it's every seen again for another state. For Java grammar,
230 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState);
231 //setOptions( nfa.grammar.getDecisionOptions(getDecisionNumber()) );
654 Interpreter interp = new Interpreter(nfa.grammar, input);
734 !nfa.grammar.decisionsWhoseDFAsUsesSemPreds.contains(this) &&
735 !nfa.grammar.decisionsWhoseDFAsUsesSynPreds.contains(this);
746 if ( nfa.grammar.type!=Grammar.LEXER )
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
task.rb 14 A rake task-generating utility concerning ANTLR grammar file
163 for grammar in @grammars
165 if vocab = grammar.token_vocab and
166 tfile = find_tokens_file( vocab, grammar )
170 grammar.define_tasks( deps )
175 for grammar in @grammars
176 grammar.clean
183 def find_tokens_file( vocab, grammar )
188 | unable to locate .tokens file `#{ vocab }' referenced in #{ grammar.path }
201 def compile( grammar )
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
BitSet.java 31 import org.antlr.tool.Grammar;
477 public String toString(Grammar g) {
IntervalSet.java 31 import org.antlr.tool.Grammar;
563 public String toString(Grammar g) {
  /external/chromium_org/third_party/mesa/src/docs/
MESA_shader_debug.spec 225 (Shading Language Grammar)
  /external/mesa3d/docs/
MESA_shader_debug.spec 225 (Shading Language Grammar)
  /external/bison/etc/
bench.pl.in 183 /* Grammar follows */
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/pgen2/
driver.py 26 from . import grammar, parse, token, tokenize, pgen namespace
31 def __init__(self, grammar, convert=None, logger=None):
32 self.grammar = grammar
41 p = parse.Parser(self.grammar, self.convert)
67 type = grammar.opmap[value]
109 def load_grammar(gt="Grammar.txt", gp=None,
111 """Load the grammar (maybe from a pickle)."""
120 logger.info("Generating grammar tables from %s", gt)
123 logger.info("Writing grammar tables to %s", gp
    [all...]
conv.py 7 parser from a grammar file in Python's grammar notation. But I don't
19 On the other hand, symbol numbers (representing the grammar's
20 non-terminals) are assigned by pgen based on the actual grammar
24 equivalent grammar tables directly from the Grammar.txt input file
33 from pgen2 import grammar, token namespace
36 class Converter(grammar.Grammar):
37 """Grammar subclass that reads classic pgen output files
    [all...]
pgen.py 5 from . import grammar, token, tokenize namespace
7 class PgenGrammar(grammar.Grammar):
99 itoken = grammar.opmap[value] # Fails if unknown token
384 def generate_grammar(filename="Grammar.txt"):
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/pgen2/
driver.py 26 from . import grammar, parse, token, tokenize, pgen namespace
31 def __init__(self, grammar, convert=None, logger=None):
32 self.grammar = grammar
41 p = parse.Parser(self.grammar, self.convert)
67 type = grammar.opmap[value]
109 def load_grammar(gt="Grammar.txt", gp=None,
111 """Load the grammar (maybe from a pickle)."""
120 logger.info("Generating grammar tables from %s", gt)
123 logger.info("Writing grammar tables to %s", gp
    [all...]
conv.py 7 parser from a grammar file in Python's grammar notation. But I don't
19 On the other hand, symbol numbers (representing the grammar's
20 non-terminals) are assigned by pgen based on the actual grammar
24 equivalent grammar tables directly from the Grammar.txt input file
33 from pgen2 import grammar, token namespace
36 class Converter(grammar.Grammar):
37 """Grammar subclass that reads classic pgen output files
    [all...]
pgen.py 5 from . import grammar, token, tokenize namespace
7 class PgenGrammar(grammar.Grammar):
99 itoken = grammar.opmap[value] # Fails if unknown token
384 def generate_grammar(filename="Grammar.txt"):
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
HitTestResult.cpp 204 // Return the tool tip string associated with this point, if any. Only markers associated with bad grammar
209 DocumentMarker* marker = m_innerNonSharedNode->document().markers().markerContainingPoint(m_hitTestLocation.point(), DocumentMarker::Grammar);
InlineTextBox.cpp     [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/config/
Makefile 161 SRCDIRS= Parser Grammar Objects Python Modules Mac
237 # Grammar
240 GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
259 Parser/grammar.c \
272 Parser/grammar.o \
627 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
629 $(srcdir)/Include/grammar.h
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/config/
Makefile 161 SRCDIRS= Parser Grammar Objects Python Modules Mac
238 # Grammar
241 GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
260 Parser/grammar.c \
273 Parser/grammar.o \
628 Parser/grammar.o: $(srcdir)/Parser/grammar.c \
630 $(srcdir)/Include/grammar.h
    [all...]

Completed in 987 milliseconds

1 2 3 45 6