0
I Use This!
Inactive

Commits : Listings

Analyzed about 21 hours ago. based on code collected 1 day ago.
Apr 24, 2023 — Apr 24, 2024
Commit Message Contributor Files Modified Lines Added Lines Removed Code Location Date
Doing some creative renaming. Object literals should probably have a first-class type, rather than hiding behind an obtuse '{' operator. More... almost 15 years ago
Starting on object literals. Have a few simple cases down. More... almost 15 years ago
Added support for '(' as a calling operator. Not sure how it will handle loop structures ('for' in particular), but I'll worry about that when _anything_ in my code can handle loop structures. :) More... almost 15 years ago
Added call syntax ('.' and '[') More... almost 15 years ago
Added ternary if. Leaving statements for later, as they turn out to be complex. More... almost 15 years ago
Added a variety of operators, and tests for a few of them. Trying to work out how to deal with multiple statements (';', '\n'), etc. More... almost 15 years ago
Starting on this stuff again. Using http://effbot.org/zone/simple-top-down-parsing.htm as a base. More... almost 15 years ago
Fixing single-line comments to handle escapes, adding multi-line comments. More... about 15 years ago
Added `__init__.py` so that this behaves like a package, and made some iterabilization changes to `TokenList` More... about 15 years ago
Throwing everything away after reading through http://www.w3.org/TR/CSS21/syndata.html#tokenization. I ought be using the specified tokens. I'll start on that. Maybe even tonight. More... over 15 years ago
Rethinking how I'm tokenizing selectors. The initial method wouldn't scale. This method probably won't either, but I'm working on it. :) More... over 15 years ago
Adding tests for TokenList, and updating TokenList to support appending lists. More... over 15 years ago
Adding tests for internal identifiers. More... over 15 years ago
Merge branch 'master' of [email protected]:mikewest/topdown More... over 15 years ago
Adding whitespace tokens for the moment, though that feels hacky. More... over 15 years ago
Crap. I need to come up with a mechanism for distinguishing `.class :pseudoclass` from `.class:pseudoclass` in the tokenizer. Probably requires smarter tokens. Bleh. More... over 15 years ago
Confirming some assumptions, adding more tests. More... over 15 years ago
You knew it was coming. I'm still stumped on factory pattern in pythonm so I'm starting on a CSS tokenizer for the JS tokenizer to play with. More... over 15 years ago
Changed `self.XXX.match( c )` to call `self.cur_char_is( XXX )` for consistancy with `self.next_char_is( XXX )`. We like self-documenting code. More... over 15 years ago
More refactorings: pulling code out of JavaScriptTokenizer that can probably be used generically (e.g. quoted strings, numbers, and identifiers), and setting up class variables to allow customization rather than diving straight into overriding. More... over 15 years ago
Pulled the "Tokenizer" functionality out into an abstract class, and subclassed it to produce "JavaScriptTokenizer". Obviously, this means I'll be building tokenizers for other languages. More... over 15 years ago
Starting on a factory method. Need to do more research, as this doesn't make sense in Python. :) More... over 15 years ago
Starting on the parser. More... over 15 years ago
Changed `Tokenizer.tokenize` to call `__token_generator`, which uses the magical `yield` construct. Python is kinda cool. More... over 15 years ago
Refactoring. More... over 15 years ago
Changing `__next_is` to `__next_char_is`, as I might need to add a `next_token` method, and ought be explicit about what's being nexted. More... over 15 years ago
Forgot comments, added appropriate tests. Now next step is parse.js. :) More... over 15 years ago
I think I've now more or less fully ported the tokenizer. Let's get started on the parser, shall we? More... over 15 years ago
Added string parsing and some tests. More... over 15 years ago
Adding the original JavaScript files so I know what it is that I'm supposed to be porting. Next step: strings. More... over 15 years ago