BuiltIns.cs:
authorMichael Welch <michaelgwelch@gmail.com>
Wed, 27 Dec 2006 21:39:28 +0000 (21:39 +0000)
committerMichael Welch <michaelgwelch@gmail.com>
Wed, 27 Dec 2006 21:39:28 +0000 (21:39 +0000)
commitb4c79f95b93f51f510263ccf63dba9cdbb61fb69
tree5c0851571ba7294fd4ce3798f56dc0cf81f552d5
parent6c3851773e2873a5c0bbfe5eb878739be8d6c042
BuiltIns.cs:
Added Print method to match the specifications in User's Reference Guide.

Radix100.cs:
Removed leading and trailing spaces on ToString to support the specifications
for STR$. The trailing and leading spaces are added within Print routines.

TestRadix100.cs:
Updated ToString tests due to changes made in Radix100.

Lexer.cs:
Removed Label and LineNumber properties. Replaced with LineId property which contains both values. Added support for parsing ';' and ':' which are needed for PRINT statement.

mbasic.csproj:
Added LineId.cs

Parser.cs:
Added support for parsing print items in a PRINT statement. Also repurcussions due to remove Label and LineNumber from Lexer. Also repurcussions from requiring a LineId on constructor of every Statement and Expression subclass.

Program.cs:
When saving executable, the assembly, module and filenames are derived from input file name. Also reserved the word TAB.

Print.cs:

The rest of the files in SyntaxTree changed as a result to requring a LineID in the constructor rather than a line number, label, or both.

LineId.cs:
Added
41 files changed:
TiBasicRuntime/BuiltIns.cs
TiBasicRuntime/Radix100.cs
TiBasicRuntime/TestRadix100.cs
mbasic.sln
mbasic/Lexer.cs
mbasic/LineId.cs [new file with mode: 0644]
mbasic/Parser.cs
mbasic/Program.cs
mbasic/SyntaxTree/Add.cs
mbasic/SyntaxTree/Assign.cs
mbasic/SyntaxTree/Block.cs
mbasic/SyntaxTree/Concatenate.cs
mbasic/SyntaxTree/Division.cs
mbasic/SyntaxTree/End.cs
mbasic/SyntaxTree/Equals.cs
mbasic/SyntaxTree/Expression.cs
mbasic/SyntaxTree/For.cs
mbasic/SyntaxTree/Function.cs
mbasic/SyntaxTree/Goto.cs
mbasic/SyntaxTree/GreaterThan.cs
mbasic/SyntaxTree/If.cs
mbasic/SyntaxTree/Increment.cs
mbasic/SyntaxTree/Input.cs
mbasic/SyntaxTree/LessThan.cs
mbasic/SyntaxTree/Multiply.cs
mbasic/SyntaxTree/Negative.cs
mbasic/SyntaxTree/Node.cs
mbasic/SyntaxTree/NumberLiteral.cs
mbasic/SyntaxTree/Power.cs
mbasic/SyntaxTree/Print.cs
mbasic/SyntaxTree/Randomize.cs
mbasic/SyntaxTree/RelationalExpression.cs
mbasic/SyntaxTree/Statement.cs
mbasic/SyntaxTree/StringLiteral.cs
mbasic/SyntaxTree/Subroutine.cs
mbasic/SyntaxTree/Subtract.cs
mbasic/SyntaxTree/VariableReference.cs
mbasic/Token.cs
mbasic/helloworld.mbas
mbasic/mbasic.csproj
mbasic/secretnum.mbas