update fix few bugs

This commit is contained in:
Mann Patel
2025-09-27 17:07:46 -06:00
parent 73de7d74aa
commit 54b9164f23
8 changed files with 397 additions and 1441 deletions

View File

@@ -8,7 +8,7 @@ fragment UnicodeEscape: '\\' UnicodeMarker HexDigit HexDigit HexDigit HexDigit;
fragment UnicodeMarker: 'u'+;
fragment RawInputCharacter:;
fragment RawInputCharacter: .;
//not complete need to ask question from prof.
// LINE TERMINATORS -----------------------------------------------------------------------------------------------------------------------
@@ -17,10 +17,10 @@ LineTerminator: '\n' | '\r' | '\r\n';
InputCharacter: [^\n\r];
//WHITE SPACE ----------------------------------------------------------------------------------------------------------------------------------------
WhiteSpace: ' ' | '\t' | '\f' | LineTerminator;
WhiteSpace: (' ' | '\t' | '\f' | LineTerminator) -> skip;
//COMMENTS --------------------------------------------------------------------------------------------------------------------------------------------------
Comment: TraditionalComment | EndOfLineComment;
Comment: (TraditionalComment | EndOfLineComment) -> skip;
fragment TraditionalComment:
'/*' NotStar CommentTail;
@@ -199,10 +199,10 @@ Dot: '.';
//OPERATORS ---------------------------------------------------------------------------------------------------------------------------------------
Assignment: '=';
GreterThan: '>';
LessThan: '<';
LogicalComplement: '!';
BitwiseComplement: '~';
LessThan: '<';
GreaterThan: '>';
LogicalComplement: '!';
Question: '?';
Colon: ':';
EqualTo: '==';