/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
RuleClosureTransition.java | 30 import org.antlr.tool.Rule; 32 /** A transition used to reference another rule. It tracks two targets 34 * state that refers to the other rule. Conversion of an NFA that 35 * falls off the end of a rule will be able to figure out who invoked 36 * that rule because of these special transitions. 39 /** Ptr to the rule definition object for this rule ref */ 40 public Rule rule; field in class:RuleClosureTransition 42 /** What node to begin computations following ref to rule */ [all...] |
/external/bison/src/ |
derives.h | 28 extern rule ***derives;
|
gram.h | 36 The rules receive rule numbers 1 to NRULES in the order they are 38 initial rule, `$accept: START-SYMBOL $end', which is numbered 1, 39 all the user rules are 2, 3 etc. Each time a rule number is 40 presented to the user, we subtract 1, so *displayed* rule numbers 43 Internally, we cannot use the number 0 for a rule because for 44 instance RITEM stores both symbol (the RHS) and rule numbers: the 45 symbols are shorts >= 0, and rule number are stored negative. 46 Therefore 0 cannot be used, since it would be both the rule number 49 Actions are accessed via the rule number. 56 RULES[R].lhs -- the symbol of the left hand side of rule R 200 } rule; typedef in typeref:struct:__anon2340 [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
ndrdic.c | 43 NJ_INT16 njd_r_get_hinsi(NJ_DIC_HANDLE rule, NJ_UINT8 type) { 46 if (rule == NULL) { 52 return V2_F_HINSI(rule); 54 return BUN_B_HINSI(rule); 56 return TAN_F_HINSI(rule); 58 return TAN_B_HINSI(rule); 60 return SUUJI_B_HINSI(rule); 62 return MEISI_F_HINSI(rule); 64 return MEISI_B_HINSI(rule); 66 return JINMEI_F_HINSI(rule); [all...] |
/ndk/sources/host-tools/make-3.81/ |
rule.h | 21 struct rule struct 23 struct rule *next; 24 char **targets; /* Targets of the rule. */ 27 struct dep *deps; /* Dependencies of the rule. */ 40 extern struct rule *pattern_rules; 41 extern struct rule *last_pattern_rule; 53 extern int new_pattern_rule PARAMS ((struct rule *rule, int override));
|
rule.c | 1 /* Pattern and suffix rule internals for GNU Make. 25 #include "rule.h" 27 static void freerule PARAMS ((struct rule *rule, struct rule *lastrule)); 32 struct rule *pattern_rules; 34 /* Pointer to last rule in the chain, so we can add onto the end. */ 36 struct rule *last_pattern_rule; 42 /* Maximum number of target patterns of any pattern rule. */ 46 /* Maximum number of dependencies of any pattern rule. * 72 register struct rule *rule, *lastrule; local [all...] |
implicit.c | 1 /* Implicit rule searching for GNU Make. 21 #include "rule.h" 35 Returns 1 if a suitable implicit rule was found, 37 or returns 0 if no implicit rule was found. */ 42 DBF (DB_IMPLICIT, _("Looking for an implicit rule for `%s'.\n")); 58 _("Looking for archive-member implicit rule for `%s'.\n")); 187 /* Search the pattern rules for a rule with an existing dependency to make 188 FILE. If a rule is found, the appropriate commands and deps are put in FILE 191 If ARCHIVE is nonzero, FILE->name is of the form "LIB(MEMBER)". A rule for 205 /* Filename we are searching for a rule for. * 262 struct rule *rule; local [all...] |
/external/webkit/Source/WebCore/bindings/js/ |
JSCSSRuleCustom.cpp | 61 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, CSSRule* rule) 63 if (!rule) 66 JSDOMWrapper* wrapper = getCachedWrapper(currentWorld(exec), rule); 70 switch (rule->type()) { 72 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSStyleRule, rule); 75 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSMediaRule, rule); 78 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSFontFaceRule, rule); 81 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSPageRule, rule); 84 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSImportRule, rule); 87 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSCharsetRule, rule); [all...] |
/frameworks/compile/mclinker/lib/LD/ |
SectionRules.cpp | 26 // SectionRules::Rule 28 SectionRules::Rule::Rule(const std::string& pSubStr, LDSection* pSection) 48 RuleList::iterator rule, rEnd = m_RuleList.end(); local 49 for (rule = m_RuleList.begin(); rule != rEnd; ++rule) { 50 if (pName.size() < rule->substr.size()) 52 if (!StringHash<ES>::may_include(rule->hash, hash)) 55 if (0 == strncmp(pName.c_str(), rule->substr.c_str(), rule->substr.size()) 64 RuleList::const_iterator rule, rEnd = m_RuleList.end(); local [all...] |
/external/chromium/net/base/ |
host_mapping_rules.cc | 36 const ExclusionRule& rule = *it; local 37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) 44 const MapRule& rule = *it; local 46 // The rule's hostname_pattern will be something like: 53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { 55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) 56 continue; // This rule doesn't apply. 59 host_port->set_host(rule.replacement_hostname); 60 if (rule.replacement_port != -1) 61 host_port->set_port(rule.replacement_port) 76 ExclusionRule rule; local 84 MapRule rule; local [all...] |
/external/icu4c/i18n/ |
zrule.cpp | 10 * \brief C API: Time zone rule classes 31 zrule_close(ZRule* rule) { 32 delete (TimeZoneRule*)rule; 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); 50 zrule_getRawOffset(ZRule* rule) { 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); 55 zrule_getDSTSavings(ZRule* rule) { 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); 75 izrule_close(IZRule* rule) { [all...] |
zrule.h | 12 * \brief C API: Time zone rule classes 54 zrule_close(ZRule* rule); 68 * @param rule, the Zrule to use 73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 77 * @param rule, the Zrule to use 81 zrule_getRawOffset(ZRule* rule); 85 * @param rule, the Zrule to use 86 * @return The amount of daylight saving offset used by this rule 90 zrule_getDSTSavings(ZRule* rule); 93 * Returns if this rule represents the same rule and offsets as another [all...] |
funcrepl.cpp | 97 UnicodeString& FunctionReplacer::toReplacerPattern(UnicodeString& rule, 100 rule.truncate(0); 101 rule.append(AMPERSAND); 102 rule.append(translit->getID()); 103 rule.append(OPEN, 2); 104 rule.append(replacer->toReplacer()->toReplacerPattern(str, escapeUnprintable)); 105 rule.append(CLOSE, 2); 106 return rule;
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
gUnitTestSuite.java | 30 /** A class which wraps all testsuites for an individual rule */ 35 protected String rule = null; // paeser rule name for unit testing field in class:gUnitTestSuite 36 protected String lexicalRule = null; // lexical rule name 37 protected String treeRule = null; // optional, required for testing tree grammar rule 49 public gUnitTestSuite(String rule) { 50 this.rule = rule; 53 public gUnitTestSuite(String treeRule, String rule) { 54 this.rule = rule [all...] |
/external/webkit/Source/WebCore/css/ |
CSSRuleList.cpp | 62 StyleBase* rule = m_list->item(index); local 63 ASSERT(!rule || rule->isRule()); 64 return static_cast<CSSRule*>(rule); 90 void CSSRuleList::append(CSSRule* rule) 93 if (!rule) { 98 m_lstCSSRules.append(rule); 101 unsigned CSSRuleList::insertRule(CSSRule* rule, unsigned index) 104 if (!rule) { 114 m_lstCSSRules.insert(index, rule); [all...] |
WebKitCSSKeyframesRule.cpp | 80 CSSRule* rule = m_lstCSSRules.get()->item(index); local 81 return (rule && rule->isKeyframeRule()) ? static_cast<WebKitCSSKeyframeRule*>(rule) : 0; 86 CSSRule* rule = m_lstCSSRules.get()->item(index); local 87 return (rule && rule->isKeyframeRule()) ? static_cast<const WebKitCSSKeyframeRule*>(rule) : 0; 90 void WebKitCSSKeyframesRule::append(WebKitCSSKeyframeRule* rule) 92 if (!rule) [all...] |
/external/icu4c/test/intltest/ |
plurults.h | 33 void assertRuleValue(const UnicodeString& rule, double expected); 34 void assertRuleKeyValue(const UnicodeString& rule, const UnicodeString& key,
|
rndmcoll.cpp | 19 // each rule can be: 151 const char * rule = test_rule.next(); local 153 logln(UnicodeString(rule, strlen(rule))); 155 UnicodeString newRule(rule); // potential bug 158 fwrite(rule, strlen(rule),1,stdout); 164 errln( "Could not create Collator for the %d(th) generated rule.\n" 166 "The rule is ",
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
construction.rb | 375 rule = opts[ :rule ] 379 message = opts[ :message ] || rule.to_s #"should parse %p with rule %s and make tree %s" % [input, rule, expected_tree] 385 result = parser.send( rule, *args ) 394 ast_test :input => "1 + 2", :rule => :r1, :ast => "(+ 1 2)" 396 ast_test :input => "assert 2+3", :rule => :r2, :ast => "(assert (+ 2 3))" 398 ast_test :input => "assert 2+3 : 5", :rule => :r2, :ast => "(assert (+ 2 3) 5)" 400 ast_test :input => "if 1 fooze", :rule => :r3, :ast => "(if 1 fooze) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
RulesEngine.java | 58 * The rule engine manages the layout rules and interacts with them. 73 * here on behalf of the currently executing rule. 129 * Invokes {@link IViewRule#getDisplayName()} on the rule matching the specified element. 132 * @return Null if the rule failed, there's no rule or the rule does not want to override 133 * the display name. Otherwise, a string as returned by the rule. 136 // try to find a rule for this element's FQCN 137 IViewRule rule = loadRule(element); local 139 if (rule != null) 163 IViewRule rule = loadRule(selectedNode.getNode()); local 191 IViewRule rule = loadRule(selectedNode.getNode()); local 222 IViewRule rule = loadRule(parentNode.getNode()); local 248 IViewRule rule = loadRule(parentNode.getNode()); local 267 IViewRule rule = loadRule(parentNode.getNode()); local 290 IViewRule rule = loadRule(targetNode.getNode()); local 316 IViewRule rule = loadRule(targetNode.getNode()); local 339 IViewRule rule = loadRule(targetNode.getNode()); local 362 IViewRule rule = loadRule(targetNode.getNode()); local 424 IViewRule rule = loadRule(targetNode.getNode()); local 446 IViewRule rule = loadRule(parent.getNode()); local 463 IViewRule rule = loadRule(parent.getNode()); local 477 IViewRule rule = loadRule(parent.getNode()); local 653 IViewRule rule = entry.getValue(); local 697 IViewRule rule = mRulesCache.get(targetDesc); local 765 IViewRule rule = mRulesCache.get(realFqcn); local [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
JavaTarget.java | 32 import org.antlr.tool.Rule; 50 for (Rule rule : grammar.getRules()) { 51 rule.throwsSpec.add("RecognitionException"); 53 Set<Rule> delegatedRules = grammar.getDelegatedRules(); 55 for (Rule rule : delegatedRules) { 56 rule.throwsSpec.add("RecognitionException");
|
/external/v8/test/cctest/ |
test-date.cc | 38 struct Rule { 42 DateCacheMock(int local_offset, Rule* rules, int rules_count) 51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); local 52 return rule == NULL ? 0 : rule->offset_sec * 1000; 61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { 62 Rule* result = NULL; 71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) [all...] |
/external/icu4c/common/ |
util_props.cpp | 26 int32_t ICU_Utility::parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit) { 32 if (p < limit && rule.charAt(p) == 48 /*0*/) { 33 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { 45 int32_t d = u_digit(rule.charAt(p++), radix); 86 int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, 99 c = rule.charAt(pos++); 105 pos = skipWhitespace(rule, pos); 109 parsedInts[intCount++] = parseInteger(rule, p, limit); 120 c = (UChar) u_tolower(rule.charAt(pos++)) [all...] |
util.h | 145 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, 177 static int32_t parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit); 214 static void appendToRule(UnicodeString& rule, 220 static void appendToRule(UnicodeString& rule, 226 static void appendToRule(UnicodeString& rule,
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
TestSuite.java | 36 protected List<Rule> rules ; 44 rules = new ArrayList<Rule>(); 52 public void addRule(Rule currentRule) { 53 if(currentRule == null) throw new IllegalArgumentException("Null rule"); 57 // test rule name 58 public boolean hasRule(Rule rule) { 59 for(Rule r: rules) { 60 if(r.getName().equals(rule.getName())) { 71 public void setRules(List<Rule> newRules) [all...] |