Now that the parsing bits are fairly well defined, I decided on making a semi-sizable test grammar. Now done is the Lexical parts of C# 2.0 (minus a few things like unicode escaping, pre-processor stuff and @keyword identifiers). Works out of the box too. It's pretty slow (~3 seconds for helloworld…
Added escape sequences tonight. Took a little while to figure out how to do them well. Most parsers from what I gather pop tokens from a stream. Escape sequences are fairly straightforward there. If escaping, pop the translated token instead. My setup uses indexes over a common string. Taking the e…
Just a few additions so far, as I've been busy:
Simple parsers for EOF, a variable character, a variable string literal.
And a slightly more complex parser designed to vary upon type and parse out a token which can be deserialized into the type.
As such a slightly more complex example:
Simple parsers for EOF, a variable character, a variable string literal.
And a slightly more complex parser designed to vary upon type and parse out a token which can be deserialized into the type.
As such a slightly more complex example:
enum A…
4th of July and Independence Day isn't on TV. wtf?
I got out and saw the new Die Hard movie today. It was okay. Worse than the first and third, way better than the second. Too much boom, too little funny. At least the computer stuff was mildly plausible. But then again, after Swordfish even Jurassic…
I got out and saw the new Die Hard movie today. It was okay. Worse than the first and third, way better than the second. Too much boom, too little funny. At least the computer stuff was mildly plausible. But then again, after Swordfish even Jurassic…
Had a nice poker outing tonight. Notable hand of the evening -
5 people left at the table. The opponents, from my left going around: A super tight player, the chip leader (about 1/2 the table's chips), someone who was so drunk that they were refused alcohol, and my arch nemesis; someone who I've go…
5 people left at the table. The opponents, from my left going around: A super tight player, the chip leader (about 1/2 the table's chips), someone who was so drunk that they were refused alcohol, and my arch nemesis; someone who I've go…
That weird threading problem is fixed now. Turned out to be two separate bugs, which is good given the disparate nature of the two sources, even though the problem looked the same.
The chatbox wasn't displaying because it is transferred from the lobby to the main ui in the process that was being sh…
The chatbox wasn't displaying because it is transferred from the lobby to the main ui in the process that was being sh…
Moe work this evening. Mocked up the UnitSummary UI bits, added some functionality, moved the game ui setup into its own thread and present a nice Loading screen.
Unfortunately, some of the UI bits are... lost somehow when I do things that way. Dunno how to explain it. It's not all of them, just the…
Unfortunately, some of the UI bits are... lost somehow when I do things that way. Dunno how to explain it. It's not all of them, just the…
Hahahah! I (mistakenly) found the bug. I was being bitten by the 'being a listener of an event is sufficient to keep something from being garbage collected' oopsie. Not a few TiedRects were being orphaned by the TableLayouts when re-configured, but were still listening to what they were tied to... …
My social calendar was free for once this Saturday, allowing some Moe work (after obliterating a guy with 5(!) Scathises). I wanted to do a little more screenshot worthy work, mainly due to journal jealousy [grin]. Unfortunately it was one of those things were you figure it would take maybe 40 mins…
For whatever reason, the threat of financial troubles (or perhaps the frugality that it promotes) provides programming motivation. At work I'm picking up Java for a project and as a general alternative to C++. At first glance it seems to be less good than I expected. I expected C# with some nuances…
Advertisement
Popular Blogs
Advertisement