idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
31 stars 6 forks source link

Complete syntax parsing rework to preserve user formatting. - [merged] #260

Closed MicahGale closed 9 months ago

MicahGale commented 1 year ago

Merges 48-add-support-for-keeping-comments -> alpha-test

Tests to add:

  1. [ ] test tab expansion.
  2. [ ] Test SC and FC tally comments
  3. [ ] Ensure comments get placed with following object.
  4. [ ] Clear out all TODO comments.
  5. [ ] Clean up code and refactor.
  6. [ ] Update all documentation.
  7. [ ] Can I delete allowed_keywords?
MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

In GitLab by @tjlaboss on Feb 22, 2023, 09:21

Commented on mcnpy/input_parser/syntax_node.py line 179

In this regex, + or - is required. It doesn't match, e.g., '1.9e3'.

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

Oh good catch. Are you reviewing the formatter right now?

MicahGale commented 1 year ago

changed this line in version 103 of the diff

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

In GitLab by @tjlaboss on Feb 22, 2023, 10:10

Commented on mcnpy/input_parser/syntax_node.py line 179

No

MicahGale commented 1 year ago

In GitLab by @tjlaboss on Feb 22, 2023, 10:10

resolved all threads

MicahGale commented 1 year ago

This commit actually broke things. It was meant to find fortran floats too. I need to make a branching RE.... sigh.

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 12 commits

Compare with previous version

MicahGale commented 1 year ago

added 11 commits

Compare with previous version

MicahGale commented 1 year ago

added 6 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 7 commits

Compare with previous version

MicahGale commented 1 year ago

added 5 commits

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 8 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 5 commits

Compare with previous version

MicahGale commented 1 year ago

added 3 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 75 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version

MicahGale commented 1 year ago

added 4 commits

Compare with previous version

MicahGale commented 1 year ago

added 2 commits

Compare with previous version

MicahGale commented 1 year ago

added 1 commit

Compare with previous version