astFromString

Parses a string of CFML code and returns its abstract syntax tree (AST) as a struct.

astFromString(cfmlCode [, mode]) → returns struct

This function requires Lucee 7.0.0.296 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

cfmlCode string
Required

The CFML code to parse.

mode string

Whether the code is tag or script based.

Examples
Sample code invoking the astFromString function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub