Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
Add: cpu.fls
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatgec committed Dec 9, 2020
1 parent a9d1a5a commit 04e31ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/cpu.fls
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/> for GNU/Linux </
func -> 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;

0 comments on commit 04e31ff

Please sign in to comment.