Skip to content

Commit

Permalink
add lang option to cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mesut146 committed Nov 11, 2021
1 parent cc7b7a4 commit 303e04e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.mesut</groupId>
<artifactId>parserx</artifactId>
<version>1.4</version>
<version>1.5</version>

<name>parserx</name>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mesut/parserx/gen/targets/CppLexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ void writeTrans() {
int len = 0;
for (int state : dfa.it()) {
List<Transition> list = dfa.trans[state];
transWriter.print(indent);
transWriter.print("\"");
if (list == null || list.isEmpty()) {
transWriter.print(makeOctal(0));
Expand All @@ -91,6 +90,7 @@ void writeTrans() {
transWriter.print("\"");
if (state <= dfa.lastState - 1) {
transWriter.print("\n");
transWriter.print(indent);
}
}
header.set("trans", transWriter.getString());
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/lexer.cpp.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ $lexer_class$::$lexer_class$(std::istream& reader) : reader(reader){
init();
}

/*$lexer_class$(File file) {
this.reader = new BufferedReader(new FileReader(file));
init();
}*/

bool $lexer_class$::getBit(const int* arr, int state) {
return ((arr[state / 32] >> (state % 32)) & 1) != 0;
}
Expand Down

0 comments on commit 303e04e

Please sign in to comment.