Skip to content

Commit

Permalink
refactor: minor optimization in the parser logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Jan 15, 2025
1 parent c9ebf35 commit d1ccd84
Show file tree
Hide file tree
Showing 2 changed files with 2,570 additions and 2,655 deletions.
34 changes: 17 additions & 17 deletions core/src/main/grammar/OrientSQL.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -972,56 +972,56 @@ OStatement StatementInternal():
LOOKAHEAD(CreateVertexStatementEmptyNoTarget())
result = CreateVertexStatementEmptyNoTarget()
|
LOOKAHEAD(CreateEdgeStatement())
LOOKAHEAD(2)
result = CreateEdgeStatement()
|
LOOKAHEAD(UpdateEdgeStatement())
LOOKAHEAD(2)
result = UpdateEdgeStatement()
|
LOOKAHEAD(UpdateStatement())
result = UpdateStatement()
|
result = MoveVertexStatement()
|
LOOKAHEAD(ProfileStorageStatement())
LOOKAHEAD(2)
result = ProfileStorageStatement()
|
LOOKAHEAD(TruncateClassStatement())
LOOKAHEAD(2)
result = TruncateClassStatement()
|
LOOKAHEAD(TruncateClusterStatement())
LOOKAHEAD(2)
result = TruncateClusterStatement()
|
LOOKAHEAD(TruncateRecordStatement())
LOOKAHEAD(2)
result = TruncateRecordStatement()
|
LOOKAHEAD(2)
result = AlterSequenceStatement()
|
LOOKAHEAD(AlterClassStatement())
LOOKAHEAD(2)
result = AlterClassStatement()
|
LOOKAHEAD(2)
result = DropSequenceStatement()
|
LOOKAHEAD(DropClassStatement())
LOOKAHEAD(2)
result = DropClassStatement()
|
LOOKAHEAD(DropViewStatement())
LOOKAHEAD(2)
result = DropViewStatement()
|
LOOKAHEAD(AlterPropertyStatement())
LOOKAHEAD(2)
result = AlterPropertyStatement()
|
LOOKAHEAD(DropPropertyStatement())
LOOKAHEAD(2)
result = DropPropertyStatement()
|
result = RebuildIndexStatement()
|
LOOKAHEAD(2)
result = DropIndexStatement()
|
LOOKAHEAD(AlterClusterStatement())
LOOKAHEAD(2)
result = AlterClusterStatement()
|
LOOKAHEAD(2)
Expand Down Expand Up @@ -1050,19 +1050,19 @@ OStatement StatementInternal():
|
result = IfStatement()
|
LOOKAHEAD(HaRemoveServerStatement())
LOOKAHEAD(3)
result = HaRemoveServerStatement()
|
LOOKAHEAD(HaStatusStatement())
LOOKAHEAD(2)
result = HaStatusStatement()
|
LOOKAHEAD(HaSyncDatabaseStatement())
LOOKAHEAD(3)
result = HaSyncDatabaseStatement()
|
LOOKAHEAD(HaSyncClusterStatement())
LOOKAHEAD(3)
result = HaSyncClusterStatement()
|
LOOKAHEAD(HaSetStatement())
LOOKAHEAD(2)
result = HaSetStatement()
)
)
Expand Down
Loading

0 comments on commit d1ccd84

Please sign in to comment.