Search found 76 matches

by ssartell
Fri 19 May, 2006 2:59 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

Look, I'm doing this for my own enjoyment, so if I want to try my hand at whatever part so be it. Like I said before (and I mean it even more so now after the last few comments), if someone would like to try it themselves then by all means go ahead. I sounds like there are several people who are mor...
by ssartell
Thu 18 May, 2006 11:37 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

Well I've never written a full compiler and parser and I'm not even that great at z80 asm so I'm just kinda playing it by ear and see what happens. If someone else wants to take a more serious shot at this, then by all means go for it. I'm mainly playing around with this cause it sparked my curiousi...
by ssartell
Thu 18 May, 2006 7:37 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

I was shooting for C/C++/Java style. I'm just working on getting the basics going right now (operations, assignments, declarations, functions, basic statements). Deciding on specific types and what not doesn't need to be done now. I'm just parsing the given code text into an abstract syntax tree so ...
by ssartell
Thu 18 May, 2006 2:40 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

Ehh, it's not that terrible. I have it parsing just about everything except for loops, function applications, and function declarations. I'm still deciding exactly how I want to work with each one.
by ssartell
Thu 18 May, 2006 2:57 am
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

well I'm still working out just parsing everything into an abstract syntax tree so I've got sometime to plan and decide things before I try and tackle that part.
by ssartell
Wed 17 May, 2006 2:30 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

I had always planned on having it typed, but I just don't think I want to check if you're using the right types for certain things. Like if you pass in a wrong typed arguement for some function, I don't really want to check for that. I can, but it'd take a while...
by ssartell
Tue 16 May, 2006 4:42 pm
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

What do you guys think about type checking? There are a lot of restrictions in C/C++ because of type checking that someone could get around if I just neglect to check types. And it'd make my life easier. Any thoughts?
by ssartell
Tue 16 May, 2006 3:58 am
Forum: Programming Help
Topic: [TI ASM] Parser and Compiler
Replies: 18
Views: 13381

[TI ASM] Parser and Compiler

I figured I'd move my topic over to here since it didn't really relate to the post it was in and maybe people would see it in here. So I'm writing a compiler for C/C++ for z80 asm (trying to do so anyways). I'm still working on the parsing code into abstract syntax trees, but it's coming along. Once...
by ssartell
Mon 15 May, 2006 1:58 pm
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

Well I'm almost done with the parser that builds the abstract syntax tree. Scheme actually has proven to be a very good choice. Building a stand-along command line with parameters is proving to be very easy and the stucture versatility was exactly what I needed. I should almost be read to start tran...
by ssartell
Sat 13 May, 2006 3:44 am
Forum: Programming Help
Topic: A question...
Replies: 14
Views: 10309

I just can't imagine this being a useful endeavor.
by ssartell
Sat 13 May, 2006 3:33 am
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

Hmm well I do have some experience in Scheme so maybe I'll try that out.
by ssartell
Fri 12 May, 2006 9:51 pm
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

I'll look into those; thanks for the suggestions. You don't think Lisp as a good choice?
by ssartell
Fri 12 May, 2006 8:45 pm
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

what attributes make it suitable for developing a compiler?
by ssartell
Fri 12 May, 2006 8:05 pm
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

So I'm trying to decide which language to use to build my compiler. I plan on converting from C++ style (probably not a full implementation) to z80 asm. I don't think I want to use C/C++ to write it because of stricting type checking and rigid data structures (unless I can figure out how to make a m...
by ssartell
Thu 11 May, 2006 4:14 pm
Forum: Program Ideas
Topic: Fun with BASIC :)
Replies: 21
Views: 27175

Wow that'll work. Thanks!