]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/c++.scm
parser.yy et al: make \mark a musicfunction.
[lilypond.git] / scm / c++.scm
index 204f813d4736388030db061ed5eea3927ec62cf6..5a5f8e0bad8b31c5b196c5c8e7bf5f8fb3c00d0c 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; This file is part of LilyPond, the GNU music typesetter.
 ;;;;
-;;;; Copyright (C) 1998--2010 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; Copyright (C) 1998--2011 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;;                 Han-Wen Nienhuys <hanwen@xs4all.nl>
 ;;;;
 ;;;; LilyPond is free software: you can redistribute it and/or modify
   (and (pair? x)
        (number? (car x)) (number? (cdr x))))
 
+(define-public (fraction? x)
+  (and (pair? x)
+       (integer? (car x)) (integer? (cdr x))
+       (>= (car x) 0) (>= (cdr x) 0)))
+
 (define-public (number-or-grob? x)
   (or (ly:grob? x) (number? x)))
 
@@ -61,6 +66,9 @@
 (define-public (symbol-or-boolean? x)
   (or (symbol? x) (boolean? x)))
 
+(define-public (void? x)
+  (eq? x (begin)))
+
 ;; moved list to end of lily.scm: then all type-predicates are
 ;; defined.
 (define type-p-name-alist '())