Skip to content

Commit

Permalink
updated files for version 0.4.4
Browse files Browse the repository at this point in the history
also includes some minor cleanup
  • Loading branch information
thunder422 committed Aug 18, 2013
1 parent 8b079fa commit 00815b4
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -49,7 +49,7 @@ set(ibcp_COPYRIGHT_YEAR 2013)

set(ibcp_RELEASE_MAJOR 0)
set(ibcp_RELEASE_MINOR 4)
set(ibcp_RELEASE_PATCH 3)
set(ibcp_RELEASE_PATCH 4)

set(ibcp_RELEASE_STRING v${ibcp_RELEASE_MAJOR}.${ibcp_RELEASE_MINOR})
if (ibcp_RELEASE_PATCH LESS 0)
Expand Down
12 changes: 6 additions & 6 deletions README
Expand Up @@ -32,12 +32,12 @@ Currently, the BASIC language parser is operational. The parser
converts text input into BASIC language tokens.

The translator is currently being developed with a new scheme that will
make translation of commands simple to implement. The LET and PRINT
commands have been implemented so far. The old translator routines have
been left in place until the new routines fully support the same
features, which include the translation of BASIC expressions along a few
BASIC commands (LET, PRINT, INPUT and REM) into a reverse polish
notation format that will be used for fast execution of the BASIC
make translation of commands simple to implement. The LET, PRINT and
INPUT commands have been implemented so far. The old translator
routines have been left in place until the new routines fully support
the same features, which include the translation of BASIC expressions
along a few BASIC commands (LET, PRINT, INPUT and REM) into a reverse
polish notation format that will be used for fast execution of the BASIC
program.

A basic GUI has been implemented including file, edit and help menus
Expand Down
4 changes: 2 additions & 2 deletions basic/let.cpp
Expand Up @@ -122,15 +122,15 @@ TokenStatus letTranslate(Translator &translator, Token *commandToken,
{
// change token to appropriate assign code
translator.table().setToken(token, Assign_Code);
token->setReference();
token->setReference(); // FIXME remove with old translator
status = translator.processDoneStackTop(token);
if (status != Good_TokenStatus)
{
return status;
}
}
// reset reference, no longer needed, and save token
token->setReference(false);
token->setReference(false); // FIXME remove with old translator
letStack.push(token);

// get data type for assignment
Expand Down
21 changes: 21 additions & 0 deletions rel_notes.txt
Expand Up @@ -38,6 +38,27 @@ Planned Roadmap (updated 2013-04-05):
To be defined...


Release 0.4.4 (2013-08-18)

Project developmental release - implementation of the new
translator scheme continues with the translation of all INPUT
statements and some improvements were made to the core
translator routines.

- reorganized associated code processing
- new variable or define function reference type

Note: All tests succeed when using the old translator. Since
some of the expected results are now different (due to the
change in translations), the unmodified expected results files
are saved and the test scripts use these when present. There
are temporary scripts for testing the new translator routines.
All tests containing assignment, PRINT and INPUT statements work
correctly with the new translator routines. The regtestn.bat
batch does not currently work very well as the old translator
expected results files confuse it.


Release 0.4.3 (2013-08-15)

Project developmental release - implementation of the new
Expand Down
2 changes: 1 addition & 1 deletion translator.cpp
Expand Up @@ -2049,7 +2049,7 @@ TokenStatus Translator::processOperator2(Token *&token)
// the token is not a valid operand token

TokenStatus Translator::getOperand(Token *&token, DataType dataType,
Reference reference)
Reference reference)
{
TokenStatus status;
bool doneAppend = true;
Expand Down
2 changes: 1 addition & 1 deletion translator.h
Expand Up @@ -174,6 +174,7 @@ class Translator
{
return m_doneStack.empty();
}
Token *doneStackPopErrorToken(void);

int outputCount(void) const
{
Expand All @@ -195,7 +196,6 @@ class Translator
{
m_output->insert(index, new RpnItem(token));
}
Token *doneStackPopErrorToken(void);

// Determine Error Funtions (By DataType)
static TokenStatus expectedErrStatus(DataType dataType,
Expand Down

0 comments on commit 00815b4

Please sign in to comment.