예제 #1
0
 def test_setting_all_short_connectors(self):
     po = ParseOptions()
     po.all_short_connectors = True
     self.assertEqual(po.all_short_connectors, True)
     self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 1)
     po.all_short_connectors = False
     self.assertEqual(po.all_short_connectors, False)
     self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 0)
예제 #2
0
 def test_setting_all_short_connectors(self):
     po = ParseOptions()
     po.all_short_connectors = True
     self.assertEqual(po.all_short_connectors, True)
     self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 1)
     po.all_short_connectors = False
     self.assertEqual(po.all_short_connectors, False)
     self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 0)
예제 #3
0
 def all_short_connectors(self):
     """
      If true, then all connectors have length restrictions imposed on
      them -- they can be no farther than short_length apart. This is
      used when parsing in \"panic\" mode, for example.
     """
     return clg.parse_options_get_all_short_connectors(self._obj) == 1
예제 #4
0
 def all_short_connectors(self):
     """
      If true, then all connectors have length restrictions imposed on
      them -- they can be no farther than short_length apart. This is
      used when parsing in \"panic\" mode, for example.
     """
     return clg.parse_options_get_all_short_connectors(self._obj) == 1
예제 #5
0
def parse_options_get_all_short_connectors(*args) -> "int" :
  return _clinkgrammar.parse_options_get_all_short_connectors(*args)
예제 #6
0
def parse_options_get_all_short_connectors(*args):
  return _clinkgrammar.parse_options_get_all_short_connectors(*args)
예제 #7
0
 def fget(self):
     return clg.parse_options_get_all_short_connectors(self._po) == 1
예제 #8
0
 def fget(self):
     return clg.parse_options_get_all_short_connectors(self._po) == 1
예제 #9
0
def parse_options_get_all_short_connectors(opts: 'Parse_Options') -> "int":
    return _clinkgrammar.parse_options_get_all_short_connectors(opts)