JWE Project Ideas: Difference between revisions

no edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 12: Line 12:
* Update the parse tree classes to provide access to the new information stored in them.
* Update the parse tree classes to provide access to the new information stored in them.
* Update the tree_print_code class to use the new info to provide better output.  Allow comments to be omitted from the output.
* Update the tree_print_code class to use the new info to provide better output.  Allow comments to be omitted from the output.
* Combine and simplify the start_function, finish_function, and recover_from_parsing_function functions into a single make_function procedure.
* Combine and simplify start_function, finish_function, and recover_from_parsing_function functions in the parser into a single make_function function. (This job is somewhat separate from the comment handling changes but now seems like a good time to do it.)
* Modify Octave's demo function to find demo comment blocks that are associated with classdef methods.
 
== Location info in the parse tree ==
 
Once all tokens are stored in the parse tree, we can eliminate the separate storage of line and column info and eliminate two arguments from nearly every tree_* class constructor.  Any location info that is needed later for error messages, debugging, or code generation can be obtained from individual tokens.


== MException object ==
== MException object ==