Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type = re.search(
- r'(?<=:)(real|number|string|char)',
- line
- )
- if not type:
- raise Exception('Invalid type.')
- else:
- type_name = type.group()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement