diff options
author | Justyna Att Ilczuk <justyna.ilczuk@gmail.com> | 2012-11-05 14:17:38 +0100 |
---|---|---|
committer | Justyna Att Ilczuk <justyna.ilczuk@gmail.com> | 2012-11-05 14:17:38 +0100 |
commit | 8fbc6c1b7d5a038c1c6965c4ca530a96d07263e7 (patch) | |
tree | 36b13e54d21d67dd2862d4dd6e54a3eb7b151812 | |
parent | 26ea2374adcc4d38e5f29ff1ef304ee3b95aed08 (diff) | |
download | sencha-lang-8fbc6c1b7d5a038c1c6965c4ca530a96d07263e7.tar.gz sencha-lang-8fbc6c1b7d5a038c1c6965c4ca530a96d07263e7.tar.bz2 sencha-lang-8fbc6c1b7d5a038c1c6965c4ca530a96d07263e7.tar.xz sencha-lang-8fbc6c1b7d5a038c1c6965c4ca530a96d07263e7.zip |
Small changes in interactive mode.
-rw-r--r-- | Sencha-lang/Debug/AST.d | 3 | ||||
-rw-r--r-- | Sencha-lang/Debug/AST.o | bin | 0 -> 19528 bytes | |||
-rw-r--r-- | Sencha-lang/Debug/ASTExpression.d | 5 | ||||
-rw-r--r-- | Sencha-lang/Debug/ASTExpression.o | bin | 0 -> 57512 bytes | |||
-rw-r--r-- | Sencha-lang/Debug/ASTStatement.d | 5 | ||||
-rw-r--r-- | Sencha-lang/Debug/ASTStatement.o | bin | 0 -> 57480 bytes | |||
-rwxr-xr-x | Sencha-lang/Debug/Sencha-lang | bin | 485521 -> 495409 bytes | |||
-rw-r--r-- | Sencha-lang/Debug/main.o | bin | 369464 -> 367920 bytes | |||
-rw-r--r-- | Sencha-lang/Debug/subdir.mk | 9 | ||||
-rw-r--r-- | Sencha-lang/main.cpp | 7 |
10 files changed, 26 insertions, 3 deletions
diff --git a/Sencha-lang/Debug/AST.d b/Sencha-lang/Debug/AST.d new file mode 100644 index 0000000..f9bdc87 --- /dev/null +++ b/Sencha-lang/Debug/AST.d @@ -0,0 +1,3 @@ +AST.d: ../AST.cpp ../AST.h + +../AST.h: diff --git a/Sencha-lang/Debug/AST.o b/Sencha-lang/Debug/AST.o Binary files differnew file mode 100644 index 0000000..7b44175 --- /dev/null +++ b/Sencha-lang/Debug/AST.o diff --git a/Sencha-lang/Debug/ASTExpression.d b/Sencha-lang/Debug/ASTExpression.d new file mode 100644 index 0000000..d99e999 --- /dev/null +++ b/Sencha-lang/Debug/ASTExpression.d @@ -0,0 +1,5 @@ +ASTExpression.d: ../ASTExpression.cpp ../ASTExpression.h ../ASTNode.h + +../ASTExpression.h: + +../ASTNode.h: diff --git a/Sencha-lang/Debug/ASTExpression.o b/Sencha-lang/Debug/ASTExpression.o Binary files differnew file mode 100644 index 0000000..646172e --- /dev/null +++ b/Sencha-lang/Debug/ASTExpression.o diff --git a/Sencha-lang/Debug/ASTStatement.d b/Sencha-lang/Debug/ASTStatement.d new file mode 100644 index 0000000..683169b --- /dev/null +++ b/Sencha-lang/Debug/ASTStatement.d @@ -0,0 +1,5 @@ +ASTStatement.d: ../ASTStatement.cpp ../ASTStatement.h ../ASTNode.h + +../ASTStatement.h: + +../ASTNode.h: diff --git a/Sencha-lang/Debug/ASTStatement.o b/Sencha-lang/Debug/ASTStatement.o Binary files differnew file mode 100644 index 0000000..4b6e6b9 --- /dev/null +++ b/Sencha-lang/Debug/ASTStatement.o diff --git a/Sencha-lang/Debug/Sencha-lang b/Sencha-lang/Debug/Sencha-lang Binary files differindex 4571ef3..2b0bbd8 100755 --- a/Sencha-lang/Debug/Sencha-lang +++ b/Sencha-lang/Debug/Sencha-lang diff --git a/Sencha-lang/Debug/main.o b/Sencha-lang/Debug/main.o Binary files differindex 335951e..61a4458 100644 --- a/Sencha-lang/Debug/main.o +++ b/Sencha-lang/Debug/main.o diff --git a/Sencha-lang/Debug/subdir.mk b/Sencha-lang/Debug/subdir.mk index e802321..be2c9b2 100644 --- a/Sencha-lang/Debug/subdir.mk +++ b/Sencha-lang/Debug/subdir.mk @@ -4,8 +4,11 @@ # Add inputs and outputs from these tool invocations to the build variables CPP_SRCS += \ +../AST.cpp \ +../ASTExpression.cpp \ ../ASTNode.cpp \ ../ASTPrimary.cpp \ +../ASTStatement.cpp \ ../Lexer.cpp \ ../Object.cpp \ ../Parser.cpp \ @@ -13,8 +16,11 @@ CPP_SRCS += \ ../main.cpp OBJS += \ +./AST.o \ +./ASTExpression.o \ ./ASTNode.o \ ./ASTPrimary.o \ +./ASTStatement.o \ ./Lexer.o \ ./Object.o \ ./Parser.o \ @@ -22,8 +28,11 @@ OBJS += \ ./main.o CPP_DEPS += \ +./AST.d \ +./ASTExpression.d \ ./ASTNode.d \ ./ASTPrimary.d \ +./ASTStatement.d \ ./Lexer.d \ ./Object.d \ ./Parser.d \ diff --git a/Sencha-lang/main.cpp b/Sencha-lang/main.cpp index a1b9346..0f8136b 100644 --- a/Sencha-lang/main.cpp +++ b/Sencha-lang/main.cpp @@ -54,10 +54,11 @@ void interactive() vector<Token> tokens; string input = "start"; - while(input != "end\n") + while(true) { - cout << "I'm waiting for your input, Master!\n"; + cout << ">> "; getline(cin, input); + if(input == "quit()") break; tokens = lexer.parse_line(input); Parser parser(tokens); parser.interpret(); @@ -70,7 +71,7 @@ void interactive() int main()
{
- cout << "Hello world!" << endl; + cout << "Sencha-lang intrepreter, version 0.02" << endl; TestLexer test_l; //test_l.run_tests(); |