예제 #1
0
 def __repr__(self) -> str:
     from cmaj.utils.stringify import stringify
     hidden = set()
     if self._token is None:
         hidden.add('token')
     if not self._children:
         hidden.add('children')
     return stringify(self, hide=hidden)
예제 #2
0
 def __repr__(self) -> str:
     from cmaj.utils.stringify import stringify
     return stringify(self, use={'rules': [*self._rules]})
예제 #3
0
 def __repr__(self) -> str:
     from cmaj.utils.stringify import stringify
     return stringify(self)
예제 #4
0
 def __repr__(self) -> str:
     from cmaj.utils.stringify import stringify
     return stringify(self, hide={'value_set'})