Opened 13 years ago
Last modified 13 years ago
#1445 closed enhancement
Unparse — at Version 1
Reported by: | Alfredo Torre | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | Mantainance |
Component: | Kernel | Version: | 3.1 |
Severity: | normal | Keywords: | Parse, Unparse |
Cc: | prcoco.bbvasp@… |
Description (last modified by )
Hello,
¿would it be posible to have the inverse function of Parse?
This function would allow to build TOL expressions from a "Parse Set". Something like this:
Text txt01 = Unparse(Parse(__TOL_EXPRESSION__));
txt01 should be "the same" as TOL_EXPRESSION
Note: See
TracTickets for help on using
tickets.
I think it could be possible, but the resulting expression will become the standarized form of initial one, not exactly the same.
There is no biyective relation between expressions and syntax trees. For example, you can add white spaces or line breaks or a final ';' to an expression without changing the resulting tree.