Пример #1
0
 def scan_enter_string(self, yy: interfaces.Scanner):
     yy.enter('in_string')
     yy.token(yy.matched_text())
Пример #2
0
 def scan_leave_string(self, yy: interfaces.Scanner):
     yy.enter('INITIAL')
     yy.token(yy.matched_text())
Пример #3
0
 def scan_enter(self, yy: Scanner, condition):
     yy.enter(condition)