summaryrefslogtreecommitdiff
path: root/docs/Lexer
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 16:36:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 16:36:27 +0000
commit72c39e3522c5781d1e7dc8abad77d96141c5d49b (patch)
treee16497caaa0bf20771ef34787de02fc95e5993bf /docs/Lexer
downloadlibcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.gz
libcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.bz2
Import beginnings of a CSS parsing library.
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112
Diffstat (limited to 'docs/Lexer')
-rw-r--r--docs/Lexer30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/Lexer b/docs/Lexer
new file mode 100644
index 0000000..8f8e1ea
--- /dev/null
+++ b/docs/Lexer
@@ -0,0 +1,30 @@
+Lexical analyser
+================
+
+This document contains various snippets of information about the lexer
+implementation.
+
+First sets
+----------
+
+IDENT [a-zA-Z] | '-' | '_' | [^#x0-#x7F] | '\'
+ATKEYWORD '@'
+STRING '"' | "'"
+HASH '#'
+NUMBER [0-9] | '.'
+PERCENTAGE [0-9] | '.'
+DIMENSION [0-9] | '.'
+URI [Uu]
+UNICODE-RANGE [Uu]
+CDO '<'
+CDC '-'
+S #x9 | #xA | #xC | #xD | #x20
+COMMENT '/'
+FUNCTION [a-zA-Z] | '-' | '_' | [^#x0-#x7F] | '\'
+INCLUDES '~'
+DASHMATCH '|'
+PREFIXMATCH '^'
+SUFFIXMATCH '$'
+SUBSTRINGMATCH '*'
+CHAR anything except " or '
+