Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

February 18th, 2001

S2: Status update [Feb. 18th, 2001|03:31 am]
LiveJournal Development


I hit the 1,000 line mark, so I guess it's time for an S2 status update.

The lexer is done... token classes are written for comments, indentifers, keywords, punctuation, variables, string literals (with variable interpolation), integer literals, and whitespace.

The parser's framework is done, and I've started to write classes to parse/store a few constructs, but not all yet. It's pretty cool.... I got it setup so each node in the parsed S2 layer also contains all the tokens that make it up, and since it knows the context the tokens are in at this point, it can refine the token's type... so if it was just an identifier token before, now it can be a type identifer token. Then, I can produce a character for character reconstruction of the input file, but formatted in HTML with syntax highlighting, links for datatypes/classes to pages that describe them, etc... fun stuff.

Haven't started the perl backend yet, but the base backend class is ready. The HTML backend is generating HTML code now (so pretty) but only for the few node types the parser recognizes.

From here on out it's just a `Simple Matter Of Programming'.

Well, not exactly... then we all need to decide the tree of data and all the classes that'll be exposed. But that's something that'll be easy to tweak incrementally later. Those are all stored in the s2 core file.....

Once I have the parser finished (tomorrow?) then I'll start making releases.

link2 comments|post comment

html tag identification [Feb. 18th, 2001|09:18 am]
LiveJournal Development


I noticed when I did the post about MD5 that I was able to have it show the string even though it was in angled brackets:

<098f6bcd 4621d373 cade4e83 2627b4f6 >

So my browser is playing nice or something, because it won't print <test> without doing the ampersand quoting.

feature request would be:

If a tag is found, but not listed in the acceptable list, to either have the client rewrite the angled brackets to their apporpriate ampersand value.. or have the cgi do it upon receipt.

This will solve a lot of whining about not being able to paste IRC copies without heavily editing.

link4 comments|post comment

[ viewing | February 18th, 2001 ]
[ go | Previous Day|Next Day ]