From 04e31ffc1b93f03e2c4a0ad67f311af8f5c20184 Mon Sep 17 00:00:00 2001 From: ferhatgec Date: Wed, 9 Dec 2020 18:37:14 +0300 Subject: [PATCH] Add: cpu.fls --- test/cpu.fls | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/cpu.fls 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;