L1Decompiler

class L1Decompiler(code: A_RawFunction, outerDeclarations: Array<A_Phrase>, tempGenerator: (String) -> String)

The L1Decompiler converts a compiled code object into an equivalent parse tree.

Author

Mark van Gulik

Parameters

code

The code to decompile.

outerDeclarations

The array of outer variable declarations and literal phrases.

tempGenerator

A transformer that takes a prefix and generates a suitably unique temporary variable name.

Constructors

Link copied to clipboard
constructor(code: A_RawFunction, outerDeclarations: Array<A_Phrase>, tempGenerator: (String) -> String)

Create a new decompiler suitable for decoding the given raw function, tuple of outer variable declarations, and temporary name generator.

Types

Link copied to clipboard
object Companion