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

如何获得整棵 AST 树的 JSON 数据? #56

Closed
cjhgit opened this issue Dec 4, 2022 · 1 comment
Closed

如何获得整棵 AST 树的 JSON 数据? #56

cjhgit opened this issue Dec 4, 2022 · 1 comment

Comments

@cjhgit
Copy link

cjhgit commented Dec 4, 2022

通过 parse 获得 tree 对象后,如何转换成整棵 AST 树的 JSON 数据?

下面是某些节点示例,是我想要的效果:

{
    "type": "createDatabase",
    "children": [
        
    ]
}


{
    "type": "SelectElements",
    "children": [
        
    ]
}

{
    "type": "TableName"
    "value": "user"
}
@HaydenOrz
Copy link
Collaborator

关联 #161

JackWang032 pushed a commit to JackWang032/dt-sql-parser that referenced this issue Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants