-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
5,608 additions
and
3,650 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.partiql.ast.v1; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Collection; | ||
import java.util.Random; | ||
|
||
/** | ||
* TODO docs, equals, hashcode | ||
*/ | ||
public abstract class AstNode { | ||
@NotNull | ||
public String tag = "Ast-" + String.format("%06x", new Random().nextInt()); | ||
|
||
@NotNull | ||
public abstract Collection<AstNode> children(); | ||
|
||
public abstract <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx); | ||
} |
Oops, something went wrong.