mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 11:40:07 +00:00
28 lines
661 B
Python
28 lines
661 B
Python
from layers.basic_layer import BasicLayer
|
|
from operators.math_operator import add, multiply
|
|
from instruments.timer_tool import Timer
|
|
from patterns.simple_pattern import run_pattern
|
|
from jump_table.simple_jump import jump_example
|
|
|
|
if __name__ == "__main__":
|
|
print("=== WFGY MVP Demo ===")
|
|
|
|
# Layer demo
|
|
layer = BasicLayer("ExampleLayer")
|
|
layer.process("Hello WFGY")
|
|
|
|
# Operators demo
|
|
print("Add 2 + 3 =", add(2, 3))
|
|
print("Multiply 4 * 5 =", multiply(4, 5))
|
|
|
|
# Instruments demo
|
|
t = Timer()
|
|
t.start()
|
|
_ = sum(range(1000))
|
|
t.stop()
|
|
|
|
# Patterns demo
|
|
run_pattern()
|
|
|
|
# Jump table demo
|
|
jump_example("B")
|