Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ast node to string #333

Unanswered
neilmi asked this question in Q&A
Feb 7, 2023 · 2 comments · 2 replies
Discussion options

hey :)
for my use case i need to convert ast node back to string
is there any built in code to do that? or only custom code with visitor etc?
i saw dump but i need binary node to be outputted as "x + y" for instance

thanks :)

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

Right now it’s not added. Will be cool to add it.

You must be logged in to vote
0 replies
Comment options

another question, is there any way to turn off + on strings?

You must be logged in to vote
2 replies
Comment options

You can use operator overloading for func (string, string) string and return an error in this function instead.

Comment options

nice,aight, thank u!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /