Skip to content

Commit cc3d7cd

Browse files
committedSep 23, 2024
some modifications
1 parent 62e25df commit cc3d7cd

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed
 

‎port_CSharp/PythonLexerBase.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ THE SOFTWARE.
3434
public abstract class PythonLexerBase : Lexer
3535
{
3636
// A stack that keeps track of the indentation lengths
37-
private Stack<int> indentLengthStack = new Stack<int>();
37+
private Stack<int> indentLengthStack = new();
3838
// A list where tokens are waiting to be loaded into the token stream
39-
private LinkedList<IToken> pendingTokens = new LinkedList<IToken>();
39+
private LinkedList<IToken> pendingTokens = new();
4040

4141
// last pending token types
4242
private int previousPendingTokenType;
@@ -79,8 +79,8 @@ public override void Reset()
7979

8080
private void Init()
8181
{
82-
this.indentLengthStack = new Stack<int>();
83-
this.pendingTokens = new LinkedList<IToken>();
82+
this.indentLengthStack = new();
83+
this.pendingTokens = new();
8484
this.previousPendingTokenType = 0;
8585
this.lastPendingTokenTypeFromDefaultChannel = 0;
8686
this.opened = 0;

‎port_CSharp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### C# implementation
1+
### C# port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_Dart/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Dart implementation
1+
### Dart port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_Go/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Go implementation
1+
### Go port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_Java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Java 8 implementation
1+
### Java 8 port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_JavaScript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### JavaScript implementation
1+
### JavaScript port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_Python3/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Python 3 implementation
1+
### Python 3 port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

‎port_TypeScript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### TypeScript implementation
1+
### TypeScript port
22

33
#### Prerequisites:
44
- Installed [ANTLR4-tools](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md#getting-started-the-easy-way-using-antlr4-tools)

0 commit comments

Comments
 (0)
Please sign in to comment.