diff --git a/test/cpu.fls b/test/cpu.fls new file mode 100644 index 0000000..16d0296 --- /dev/null +++ b/test/cpu.fls @@ -0,0 +1,16 @@ +/> for GNU/Linux GetCPU() { + @lineof -> cpu_name -> "/proc/cpuinfo" : "model name : " < + + @substring -> cpu_name -> model name : < + + @pop_back -> cpu_name < + + print(string) -> "{cpu_name}\n" +} GetCPU; + +main() -> main { + var(string) -> null -> cpu_name <- + + func -> GetCPU() +} main;