Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Parser using PLY. #3

Closed
aalhour opened this issue May 23, 2016 · 3 comments
Closed

Implement Parser using PLY. #3

aalhour opened this issue May 23, 2016 · 3 comments

Comments

@aalhour
Copy link
Owner

aalhour commented May 23, 2016

Parser Implementation Notes:

  • Design the Parser as an isolated component.
  • Bind the Parser component to the Lexer and use Lexer output as input for syntactic analysis.
  • Implement the Abstract Syntax Tree. Design the nodes as Classes.
  • Implement Syntax Analysis using PLY for LALR parser generation.
  • Parser will generate a complete Abstract Syntax Tree representation of the input COOL program.
@aalhour aalhour added the todo label May 23, 2016
@aalhour aalhour added this to the Complete Compiler Frontend milestone May 23, 2016
@aalhour
Copy link
Owner Author

aalhour commented May 27, 2016

Implement a custom ParseError Exception class. It should print the line at which the error happened, the probable reason(s) and the character/token at which the error happened.

@aalhour
Copy link
Owner Author

aalhour commented May 28, 2016

Finished implementing 10 out of 25 grammar rules. Dissected the expr rule to smaller production rules.

@aalhour
Copy link
Owner Author

aalhour commented Jun 5, 2016

Done.

@aalhour aalhour closed this as completed Jun 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant