From 72c39e3522c5781d1e7dc8abad77d96141c5d49b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 1 May 2008 16:36:27 +0000 Subject: Import beginnings of a CSS parsing library. Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112 --- docs/Lexer | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docs/Lexer (limited to 'docs/Lexer') 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 ' + -- cgit v1.2.3