Changed prompt for surveyor
git-svn-id: http://picoc.googlecode.com/svn/trunk@174 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
0f5675271d
commit
08cd7e8328
7
TODO
7
TODO
|
@ -4,6 +4,13 @@ Bugs:
|
||||||
* defining functions returning void
|
* defining functions returning void
|
||||||
* defining functions from interactive mode
|
* defining functions from interactive mode
|
||||||
* defining functions with no parameters (in 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:
|
Implement:
|
||||||
* operator precedence
|
* operator precedence
|
||||||
|
|
|
@ -509,7 +509,7 @@ int ExpressionParse(struct ParseState *Parser, struct Value **Result)
|
||||||
|
|
||||||
/* scan and collapse the stack to precedence 0 */
|
/* scan and collapse the stack to precedence 0 */
|
||||||
ExpressionStackCollapse(Parser, &StackTop, 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
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#define STRUCT_TABLE_SIZE 11 /* size of struct/union member table (can expand) */
|
#define STRUCT_TABLE_SIZE 11 /* size of struct/union member table (can expand) */
|
||||||
|
|
||||||
#define INTERACTIVE_PROMPT_START "starting picoc\n"
|
#define INTERACTIVE_PROMPT_START "starting picoc\n"
|
||||||
#define INTERACTIVE_PROMPT_STATEMENT "c> "
|
#define INTERACTIVE_PROMPT_STATEMENT "picoc> "
|
||||||
#define INTERACTIVE_PROMPT_LINE " > "
|
#define INTERACTIVE_PROMPT_LINE " > "
|
||||||
|
|
||||||
/* host platform includes */
|
/* host platform includes */
|
||||||
#ifdef UNIX_HOST
|
#ifdef UNIX_HOST
|
||||||
|
@ -57,6 +57,10 @@
|
||||||
# include "../neural.h"
|
# include "../neural.h"
|
||||||
# include "../i2c.h"
|
# include "../i2c.h"
|
||||||
# define assert(x)
|
# define assert(x)
|
||||||
|
# undef INTERACTIVE_PROMPT_STATEMENT
|
||||||
|
# undef INTERACTIVE_PROMPT_LINE
|
||||||
|
# define INTERACTIVE_PROMPT_STATEMENT "> "
|
||||||
|
# define INTERACTIVE_PROMPT_LINE "- "
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue