summaryrefslogtreecommitdiff
path: root/src/lex
Commit message (Collapse)AuthorAgeFilesLines
* Update for new lpu API.Michael Drake2013-12-141-2/+1
|
* Various changes which modify API and ABI:Michael Drake2013-12-132-15/+6
| | | | | | | | | - Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/libcss/; revision=14004
* Fix build with GCC 4.6John Mark Bell2011-07-261-0/+4
| | | | svn path=/trunk/libcss/; revision=12627
* Rename all css_[^_] internal symbols to css__ so that they're nicely namespacedDaniel Silverstone2011-01-262-8/+8
| | | | svn path=/trunk/libcss/; revision=11492
* Use unsigned int for bitfields. Apparently, using uint32_t confuses some ↵John Mark Bell2009-08-021-2/+2
| | | | | | compilers. svn path=/trunk/libcss/; revision=8990
* Don't intern lower-case versions of strings. Use ↵John Mark Bell2009-07-272-10/+3
| | | | | | lwc_context_string_caseless_isequal, instead. svn path=/trunk/libcss/; revision=8815
* Reduce inlining in lexerJohn Mark Bell2009-06-271-26/+26
| | | | svn path=/trunk/libcss/; revision=8034
* Fix tests for unicode escape sequences to actually have the correct expected ↵John Mark Bell2009-05-261-6/+57
| | | | | | | | | | | values. Fix expected value for a CHAR containing solely a \. Add new tests for invalid unicode escape sequences (out-of-range, lonely surrogates, etc). Add test to ensure that \000D gets converted to \000A. Fix unicode escape sequence handling to pass the above tests. Also ensure it correctly handles the whitespace character after the escape sequence. svn path=/trunk/libcss/; revision=7549
* A bunch of c89.John Mark Bell2009-04-151-1/+1
| | | | | | | Lose trailing commas. GCC 2.95 compatibility. svn path=/trunk/libcss/; revision=7099
* Port to new buildsystemJohn Mark Bell2009-03-241-47/+2
| | | | svn path=/trunk/libcss/; revision=6856
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-4/+8
| | | | | | | | | It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517
* Drop css_error_handler and rename css_alloc to css_allocator_fnDaniel Silverstone2009-02-142-3/+3
| | | | svn path=/trunk/libcss/; revision=6482
* Move isDigit() and isHex() to utils.h.John Mark Bell2009-01-221-12/+0
| | | | | | Fix #rgb/#rrggbb parsing to ensure that the characters are valid hex digits. svn path=/trunk/libcss/; revision=6167
* Lose a todo. I don't think we want to have the lexer split up dimensions ↵John Mark Bell2009-01-121-1/+0
| | | | | | into value + unit pairs. svn path=/trunk/libcss/; revision=6046
* Beginnings of a colour specifier parser.John Mark Bell2009-01-111-41/+0
| | | | svn path=/trunk/libcss/; revision=6037
* Port to modified parserutils API.John Mark Bell2009-01-061-222/+242
| | | | svn path=/trunk/libcss/; revision=5973
* Retain pointer to dictionary entries so we don't have to rediscover it later.John Mark Bell2008-12-012-4/+6
| | | | svn path=/trunk/libcss/; revision=5862
* Simplify decision as to whether to intern token data by inserting markers ↵John Mark Bell2008-12-011-7/+16
| | | | | | into the css_token_type enum. svn path=/trunk/libcss/; revision=5860
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-271-31/+31
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* Prevent reading from beyond the start of token data.John Mark Bell2008-11-271-5/+6
| | | | svn path=/trunk/libcss/; revision=5807
* Port libcss to new lpu API.John Mark Bell2008-11-092-16/+25
| | | | | | Make lexer, core parser, and css21 parser constructors&destructors return errors svn path=/trunk/libcss/; revision=5674
* Support signs on numbers, percentages, and dimensionsJohn Mark Bell2008-10-271-12/+30
| | | | svn path=/trunk/libcss/; revision=5648
* For tokens where there's a possibility of case differences requiring case ↵John Mark Bell2008-08-042-0/+4
| | | | | | insensitive matching, intern lower cased versions of strings alongside the originals. svn path=/trunk/libcss/; revision=4902
* Stub out at-rule handlingJohn Mark Bell2008-08-041-0/+1
| | | | svn path=/trunk/libcss/; revision=4899
* Only intern strings when we get a token from the lexer. Strings in tokens ↵John Mark Bell2008-08-012-35/+42
| | | | | | that have been pushed back have already been interned, so it's stupid to re-intern every time. This has required that the lexer permits its clients to modify the data members of the css_token object. That's fine, as it assumes nothing about them (they're basically just a window onto the internal lexer state, anyway). svn path=/trunk/libcss/; revision=4857
* Correctly process unterminated strings.John Mark Bell2008-06-262-26/+37
| | | | svn path=/trunk/libcss/; revision=4455
* Pedantic linewrappingJohn Mark Bell2008-05-201-2/+8
| | | | | | Flag todo relating to handling of unexpected end of string svn path=/trunk/libcss/; revision=4185
* Fix testdriver to accept # in inputJohn Mark Bell2008-05-031-2/+4
| | | | | | | Significantly more tests for the lexer -- this basically covers all the non-OOD/EOF cases Fix bug in lexing of "/x" -- the CHAR(/) was getting dropped by the "don't emit comment tokens" logic svn path=/trunk/libcss/; revision=4120
* Add spaceJohn Mark Bell2008-05-011-1/+1
| | | | svn path=/trunk/libcss/; revision=4114
* Import beginnings of a CSS parsing library.John Mark Bell2008-05-013-0/+2232
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112