Browse Source

new gizmo notation

Noah Vogt 4 years ago
parent
commit
484576ba2b
3 changed files with 22 additions and 3 deletions
  1. 16 0
      src/krebs
  2. 3 0
      tests/start-haenschen-klein
  3. 3 3
      tests/testfile

+ 16 - 0
src/krebs

@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+
+# read from standard input
+import sys
+stdin_list = []
+for line in sys.stdin:
+    stdin_list.append(line.rstrip())
+
+# import needed gizmo funtions
+from gizmo_funtions import *
+
+stdin_list.reverse()
+def gizmo_stdout(input_list):
+    for item in input_list:
+        print(item)
+gizmo_stdout(stdin_list)

+ 3 - 0
tests/start-haenschen-klein

@@ -0,0 +1,3 @@
+0.5,G4
+0.5,E4
+1.0,E4

+ 3 - 3
tests/testfile

@@ -1,3 +1,3 @@
-1,C4
-2,C3
-4,D#4
+1.0,C4
+2.0,C3
+4.0,D#4