iffyio commented on issue #2065:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/2065#issuecomment-3565797679

   ```rust
    Parser::parse_sql_with_comments(..) -> Result<(Vec<Statement>, Comments), 
..>)`
    ```
    This approach sounds reasonable to me!
   
   > that some tokens are omitted from the AST entirely, namely punctuation, 
making it difficult for a client to tell a comment's semantic position 
   
   @xitep do you mean that in the example the comments `/* one */` and `/* two 
*/` aren't part of the tokenizer output to begin with? Offhand i would guess 
that doesn't have to be a special case in the tokenizer code
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to