Changed prompt for surveyor

git-svn-id: http://picoc.googlecode.com/svn/trunk@174 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-03-09 00:07:44 +00:00
parent 0f5675271d
commit 08cd7e8328
3 changed files with 14 additions and 3 deletions

7
TODO
View file

@ -4,6 +4,13 @@ Bugs:
* defining functions returning void
* defining functions from interactive mode
* defining functions with no parameters (in interactive mode?)
* 'else' is broken
* int fact(int i) {
if (i < 2) {
return i;
}
return (i * fact(i - 1));
}
Implement:
* operator precedence

View file

@ -509,7 +509,7 @@ int ExpressionParse(struct ParseState *Parser, struct Value **Result)
/* scan and collapse the stack to precedence 0 */
ExpressionStackCollapse(Parser, &StackTop, 0);
XXX - fix up the stack and return the result if we're in run mode
//XXX - fix up the stack and return the result if we're in run mode
}
#endif

View file

@ -21,8 +21,8 @@
#define STRUCT_TABLE_SIZE 11 /* size of struct/union member table (can expand) */
#define INTERACTIVE_PROMPT_START "starting picoc\n"
#define INTERACTIVE_PROMPT_STATEMENT "c> "
#define INTERACTIVE_PROMPT_LINE " > "
#define INTERACTIVE_PROMPT_STATEMENT "picoc> "
#define INTERACTIVE_PROMPT_LINE " > "
/* host platform includes */
#ifdef UNIX_HOST
@ -57,6 +57,10 @@
# include "../neural.h"
# include "../i2c.h"
# define assert(x)
# undef INTERACTIVE_PROMPT_STATEMENT
# undef INTERACTIVE_PROMPT_LINE
# define INTERACTIVE_PROMPT_STATEMENT "> "
# define INTERACTIVE_PROMPT_LINE "- "
# endif
# endif
#endif