openhub.net
Black Duck Software, Inc.
Black Duck Open Hub
Follow @
OH
Sign In
Join Now
Projects
People
Organizations
Tools
Blog
BDSA
Projects
People
Projects
Organizations
Forums
M
mikewest's topdown
Settings
|
Report Duplicate
0
I Use This!
×
Login Required
Log in to Open Hub
Remember Me
Inactive
Commits
: Listings
Analyzed
about 21 hours
ago. based on code collected
1 day
ago.
Apr 24, 2023 — Apr 24, 2024
Showing page 1 of 2
Search / Filter on:
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.
Mike West
More...
almost 15 years ago
Starting on object literals. Have a few simple cases down.
Mike West
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. :)
Mike West
More...
almost 15 years ago
Added call syntax ('.' and '[')
Mike West
More...
almost 15 years ago
Added ternary if. Leaving statements for later, as they turn out to be complex.
Mike West
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.
Mike West
More...
almost 15 years ago
Starting on this stuff again. Using http://effbot.org/zone/simple-top-down-parsing.htm as a base.
Mike West
More...
almost 15 years ago
Fixing single-line comments to handle escapes, adding multi-line comments.
Mike West
More...
about 15 years ago
Added `__init__.py` so that this behaves like a package, and made some iterabilization changes to `TokenList`
Mike West
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.
Mike West
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. :)
Mike West
More...
over 15 years ago
Adding tests for TokenList, and updating TokenList to support appending lists.
Mike West
More...
over 15 years ago
Adding tests for internal identifiers.
Mike West
More...
over 15 years ago
Merge branch 'master' of
[email protected]
:mikewest/topdown
Mike West
More...
over 15 years ago
Adding whitespace tokens for the moment, though that feels hacky.
Mike West
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.
Mike West
More...
over 15 years ago
Confirming some assumptions, adding more tests.
Mike West
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.
Mike West
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.
Mike West
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.
Mike West
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.
Mike West
More...
over 15 years ago
Starting on a factory method. Need to do more research, as this doesn't make sense in Python. :)
Mike West
More...
over 15 years ago
Starting on the parser.
Mike West
More...
over 15 years ago
Changed `Tokenizer.tokenize` to call `__token_generator`, which uses the magical `yield` construct. Python is kinda cool.
Mike West
More...
over 15 years ago
Refactoring.
Mike West
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.
Mike West
More...
over 15 years ago
Forgot comments, added appropriate tests. Now next step is parse.js. :)
Mike West
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?
Mike West
More...
over 15 years ago
Added string parsing and some tests.
Mike West
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.
Mike West
More...
over 15 years ago
←
1
2
→
This site uses cookies to give you the best possible experience. By using the site, you consent to our use of cookies. For more information, please see our
Privacy Policy
Agree