- 
                Notifications
    You must be signed in to change notification settings 
- Fork 17
Add position info to DDM. #112
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
Conversation
ea232b3    to
    338c03d      
    Compare
  
    f8f0277    to
    18af9f2      
    Compare
  
    39fa709    to
    8fabcd1      
    Compare
  
    6fb9ea4    to
    9c54839      
    Compare
  
    This introduces a datatype for a range of characters in a source file. It will be used for embedding source information in the AST for #112 , but is currently only being added to info trees. This PR also removes the extra syntax elements from error handling as messages contain source information. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
b29241e    to
    898ec58      
    Compare
  
    898ec58    to
    a2b89bb      
    Compare
  
    This is a large PR that makes DDM changes to support source location information in #112. * Updates SyntaxCat to use a structure instead of algebraic data type. This improves efficiency of accessing head. * ArgDecls is a singleton structure instead of type abbreviation and coercisions with array no longer allowed. This will allow additional invariants to be added such as uniqueness of names. * There is additional checking for undefined names to reduce spurious errors when module imports cannot be found. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
a2b89bb    to
    b424444      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 
I checked that byteIdxis correctly appearing by probing a random example, specifically by running#eval Command.ofAst example1.commands[0]at StrataTest/DDM/Comment.lean . However, I found that thebyteIdxis counted from the beginning of the .lean file, not from the beginning of#strata. Which option should we choose?
- 
I found that Examples/Lean/BoogieLite.lean was breaking again. Should we add lake build StrataExamples..? On my Mac, this command seems to fail for other reasons as well, however.
This is a large PR that adds the ability to attach annotations to DDM subterms. This is used for source location information. This is inherently a large change since many operators need an additional argument and type level parameters are needed.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.