Skip to content

Commit

Permalink
Do not write yacc tables to filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
jlev committed Sep 21, 2017
1 parent bfba3fb commit 54d5008
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions flanker/addresslib/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,28 @@ def p_error(p):

log.info('building mailbox parser')
mailbox_parser = yacc.yacc(
start='mailbox', errorlog=log)
start='mailbox', errorlog=log,
write_tables=False)

log.info('building addr_spec parser')
addr_spec_parser = yacc.yacc(
start='addr_spec', errorlog=log)
start='addr_spec', errorlog=log,
write_tables=False)

log.info('building url parser')
url_parser = yacc.yacc(
start='url', errorlog=log)
start='url', errorlog=log,
write_tables=False)

log.info('building mailbox_or_url parser')
mailbox_or_url_parser = yacc.yacc(
start='mailbox_or_url', errorlog=log)
start='mailbox_or_url', errorlog=log,
write_tables=False)

log.info('building mailbox_or_url_list parser')
mailbox_or_url_list_parser = yacc.yacc(
start='mailbox_or_url_list', errorlog=log)
start='mailbox_or_url_list', errorlog=log,
write_tables=False)


# Interactive prompt for easy debugging
Expand Down

0 comments on commit 54d5008

Please sign in to comment.