Literal.value

Returns the value of the literal.

Query Example

from glider import *


def query():
    functions = (
        Functions()
        .with_name("mul")
        .exec(1)
    )
    instructions = functions[0].instructions().exec()
    for instruction in instructions:
        for component in instruction.get_components():
            if isinstance(component, Literal):                  
                print(component)
                print(component.value)

              
    return [instructions[0]]

Example Output

Last updated