Skip to content

Python p21 lexer and parser improvements#344

Merged
mpictor merged 9 commits into
stepcode:masterfrom
cshorler:python_p21_lexer_and_parser_improvements
Jul 12, 2015
Merged

Python p21 lexer and parser improvements#344
mpictor merged 9 commits into
stepcode:masterfrom
cshorler:python_p21_lexer_and_parser_improvements

Conversation

@cshorler
Copy link
Copy Markdown
Member

@cshorler cshorler commented Jul 5, 2015

No description provided.

cshorler added 9 commits July 5, 2015 17:30
 - replace another dict comprehension
 - ensure new style classes are used in Python 2.6
 - change the way the tokens list is used (improves ability to subclass)
 - change way states are used, could give a substantial performance improvement
 - implement a more flexible approach for exchange_file start token search (more extensibile for subclassing)
 - rework/standardise keyword implementation for DATA token

Parser improvements
 - implement error handling for duplicate entity instances
   * parser catches the error, logs it
   * resyncs and continues (the duplicate is ignored)
 - rework the exchange_file structure detection
   * added parser.reset() to allow a more flexible approach to subclassing
(assumes code is under ~/projects/src/stepcode)
mpictor added a commit that referenced this pull request Jul 12, 2015
…rovements

Python p21 lexer and parser improvements
@mpictor mpictor merged commit 7568033 into stepcode:master Jul 12, 2015
@mpictor mpictor modified the milestone: v0.9 release Jul 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants