00:00:17: <bvowk_> Fair enough :)
00:00:23: <bvowk_> I think I knew that already.
00:10:24: <Doxin> hmm
00:10:46: <bvowk_> How is your parser coming?
00:10:50: <Doxin> not great :P
00:10:54: <Doxin> this shit is hard
00:11:15: <Doxin> bvowk_: essentially I need to get information from code that isn't preprocessed yet. which is impossible because macros.
00:11:50: <bvowk_> Yeah, it's a serious pain to parse the redcode according to spec.
00:11:56: <bvowk_> I cheated myself ;)
00:12:02: <Doxin> :P
00:12:07: <bvowk_> I just parse a simplified subseet.
00:12:17: <Doxin> I dont wanna do that is the thing
00:13:17: <bvowk_> I know, and when you're done, hopefully we can package it so nobody else has to suffer like you :)
00:13:24: <Doxin> that's the idea
00:13:29: <Doxin> I'm just kinda stuck right now
00:13:46: <Doxin> the only way I can see that'll work is repeatedly parsing, unparsing, and resolving macros
00:14:01: <Doxin> but that'd lead to stuff like accidentally resolving a macro twice
00:14:10: <bvowk_> I think you'll definitely need to make a couple passes.
00:14:18: <Doxin> oh sure
00:14:30: <Doxin> but I can't make a pass until the preprocessing is done
00:14:40: <Doxin> and I can't do the preprocessing without making a pass
00:16:21: <bvowk_> You likely need to break that step up, so your first pass is identifying things to resolve, and the next pass is actually disambiguating them, and then preprocessing.
00:16:51: <Doxin> right
00:16:55: <Doxin> but
00:17:09: <Doxin> I can't even figure out what to resolve without doing the preprocessing
00:17:27: <Doxin> bvowk_: keep in mind that stuff like "Doxin is a smelly fart!" could totally be valid redcode depending on macros.
00:18:21: <Doxin> I'm thinking I should probably step away from using a parser generator though :/
00:20:00: <bvowk_> Maybe.
00:21:15: <bvowk_> Getting the first one working is the hardest part :)
00:21:18: <Doxin> :P
00:21:36: <bvowk_> after that you might be able to get it to fit neatly in an existing parser generator structure?
00:21:40: <Doxin> bvowk_: I've actually got it parsing 95% of input cases. it's that last 5% that's a massive pain
00:22:01: <bvowk_> Yup.
00:22:01: <Doxin> I think I just need to make my parser less clever.
00:22:45: <Doxin> alright. time to start over.
00:24:23: <Doxin> bvowk_: do you happen to know where macro concatenation is allowed? is it allowed everywhere or only in A and B-field?
00:25:59: <Doxin> well no it's textual so it ignores fields
00:26:01: <Doxin> hrm :/
01:51:41: <Doxin> bvowk_: progress!
02:09:36: -!- Doxin has quit (Remote host closed the connection).
05:23:56: -!- catageek has quit (Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/).
05:29:30: -!- catageek has joined #corewars.
07:23:31: -!- yoR has joined #corewars.
07:24:31: <yoR> Doxin: Have you looked at how PMars parses the code? It might not be the best readable code, but at least it works, you might be able to use it as a startingpoint/reference?
08:14:42: -!- yoR has quit (Quit: Page closed).
11:26:15: -!- LexiciScriptor has joined #corewars.
12:00:15: -!- Payhn has quit (Quit: ZNC - http://znc.in).
12:02:23: -!- Payhn has joined #corewars.
13:15:03: -!- LexiciScriptor has quit (Quit: LexiciScriptor).
15:12:39: -!- Doxin has joined #corewars.
18:02:14: <bvowk_> ...
18:36:26: -!- gb_master has joined #corewars.
18:37:20: -!- catageek has quit (Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/).
18:39:08: -!- catageek has joined #corewars.
18:54:25: -!- gb_master has parted #corewars ("Leaving").
20:27:40: -!- catageek has quit (Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/).
20:29:29: -!- catageek has joined #corewars.
22:16:16: -!- impomatic has joined #corewars.
22:18:02: <impomatic> Neo is giving a Core War talk on 22nd Feb :-) http://www.dsa-research.org/doku.php?id=people%3Apoletti%3Acorewarfdi
23:21:47: <bvowk_> No, World Champion Neo is giving a talk ;)
23:21:54: <bvowk_> That sounds pretty awesome.
23:22:18: <bvowk_> I just got a new higher peak for my tiny K climbing.
23:22:32: <bvowk_> jumped 6 slots.
23:24:21: <bvowk_> Only 30 more to go :(