Skip to content

Commit

Permalink
add SymboList
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentSamsara committed May 9, 2020
1 parent 7b46ecc commit 651c819
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lexer/SymbolTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class SymbolTable {
public static ArrayList<SortCode> sortCodeList = new ArrayList<>();
public static ArrayList<WordItem> wordItemList = new ArrayList<>();//已匹配项目
public static void initLoadSortCodeList(){
sortCodeList.add(new SortCode("STRING", 99, "string"));
sortCodeList.add(new SortCode("WRITELN", 100, "function"));
sortCodeList.add(new SortCode("BEGIN", 101, "Start"));
sortCodeList.add(new SortCode("END", 102, "End"));
Expand Down

0 comments on commit 651c819

Please sign in to comment.