From bdbc29e448350bdf2e56047c5c6ac3afafb2c1a4 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 17 Nov 2018 20:08:17 +0100 Subject: [PATCH] transform: reduce simple commands...WIP --- gash/grammar.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gash/grammar.scm b/gash/grammar.scm index 5f7d4e3..1e06712 100644 --- a/gash/grammar.scm +++ b/gash/grammar.scm @@ -258,6 +258,9 @@ (('command word ... ('io-redirect ('io-file "<" file-name))) `(with-input-from-file ,file-name (command ,@word))) + (('command ('word (and (? string?) string)) ...) + `(command ,@string)) + (('command ('if-clause if-clause ...)) (transform `(if-clause ,@if-clause))) (('if-clause expr then)