summaryrefslogtreecommitdiff
path: root/fonts.dtd
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-04-15 23:38:06 +0000
committerKeith Packard <keithp@keithp.com>2003-04-15 23:38:06 +0000
commit3f7653c2badeb426f938bafe1a82c2917b7ea125 (patch)
treebc820a13520bdc1c12ca9e92b78938a439aaa0e9 /fonts.dtd
parent52253696cd2779bd9040457fbd157bbe75895ed6 (diff)
Fix unary operator parsing. Add floor, ceil, trunc and round unary
operators
Diffstat (limited to 'fonts.dtd')
-rw-r--r--fonts.dtd6
1 files changed, 5 insertions, 1 deletions
diff --git a/fonts.dtd b/fonts.dtd
index f7c2bc9..b89ffe3 100644
--- a/fonts.dtd
+++ b/fonts.dtd
@@ -91,7 +91,7 @@
<!ENTITY % expr 'int|double|string|matrix|bool|charset
|name|const
|or|and|eq|not_eq|less|less_eq|more|more_eq|contains|not_contains
- |plus|minus|times|divide|not|if'>
+ |plus|minus|times|divide|not|if|floor|ceil|round|trunc'>
<!--
Match and edit patterns.
@@ -180,3 +180,7 @@
<!ELEMENT divide (%expr;)*>
<!ELEMENT not (%expr;)>
<!ELEMENT if ((%expr;), (%expr;), (%expr;))>
+<!ELEMENT floor (%expr;)>
+<!ELEMENT ceil (%expr;)>
+<!ELEMENT round (%expr;)>
+<!ELEMENT trunc (%expr;)>