gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > commandline

#163217 - hacker013 - Thu Sep 25, 2008 6:22 pm

hey everybody,

I'm busy with a ds-dos look a like program, but with more options. But i can't make a working commandline parser, can anybody me help with this. If it can, code snippets.

gr,

hacker013
_________________
Website / Blog

Let the nds be with you.

#163225 - sarachiel - Fri Sep 26, 2008 7:28 am

Hello,

what do you mean "you can't make a working command line parser" ? Is that some sort of 'algorithm' problem ? I've coded a unix shell from scratch a few months ago, so I can probably bring you some tips if it is what you're looking for.

#163226 - no2pencil - Fri Sep 26, 2008 7:56 am

Can you show us how you are pulling in the command & arguments, & then we can see what's going on that might be incorrect?
_________________
-#2pencil

#163231 - Maxxie - Fri Sep 26, 2008 1:38 pm

Just have a search for "interpreter". (A command line parser is nothing but a intepreter on a [small] formal language) This should help you more then asking for code snippets.
_________________
Trying to bring more detail into understanding the wireless hardware

#163239 - hacker013 - Fri Sep 26, 2008 7:22 pm

@maxxie, thx, i have it working now.
_________________
Website / Blog

Let the nds be with you.