]> git.tuebingen.mpg.de Git - paraslash.git/commit - web/manual.md
mood: Make "duration" a new keyword for the mood grammar.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 30 Aug 2018 20:09:54 +0000 (22:09 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Oct 2021 15:10:17 +0000 (17:10 +0200)
commit8d36eb43da27bef1e7bc3d626f46cb4c92ca2a41
tree8e66f67e07efc37ddff8a8eb6fa78dc5027fb17b
parentfed61968a113bd37b196bb86d9f2591d53b15162
mood: Make "duration" a new keyword for the mood grammar.

The new keyword makes it possible to define moods which impose a
constraint on the duration of the admissible files. For example,
the expression

duration < 120 * 1000

selects only files which are shorter than two minutes.

The implementation is pretty simple.
mp.c
mp.h
web/manual.md
yy/mp.lex
yy/mp.y