示例#1
0
 def parse_cmap_format(self):
     location = self.cur_token_location_
     name = self.cur_token_
     value = (self.expect_number_(), self.expect_number_(),
              self.expect_number_())
     setting = ast.SettingDefinition(name, value, location=location)
     return setting
示例#2
0
 def parse_ppem_(self):
     location = self.cur_token_location_
     ppem_name = self.cur_token_
     value = self.expect_number_()
     setting = ast.SettingDefinition(ppem_name, value, location=location)
     return setting
示例#3
0
 def parse_compiler_flag_(self):
     location = self.cur_token_location_
     flag_name = self.cur_token_
     value = True
     setting = ast.SettingDefinition(flag_name, value, location=location)
     return setting
示例#4
0
 def parse_noarg_option_(self):
     location = self.cur_token_location_
     name = self.cur_token_
     value = True
     setting = ast.SettingDefinition(name, value, location=location)
     return setting