summaryrefslogtreecommitdiff
path: root/src/ast/nodes/AtomNode.java
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-06-27 22:39:22 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-06-27 22:39:22 +0200
commitd653d3598d71fea30d45d118e3d046a3aed53ac1 (patch)
tree9d6720f83e4752aa1dd54daf549734b67747b60a /src/ast/nodes/AtomNode.java
parent259580d38338ef53e6f98b2b279d1d4aa8ecff04 (diff)
Uncommented test files
Diffstat (limited to 'src/ast/nodes/AtomNode.java')
-rw-r--r--src/ast/nodes/AtomNode.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast/nodes/AtomNode.java b/src/ast/nodes/AtomNode.java
index 16281d6..cea617f 100644
--- a/src/ast/nodes/AtomNode.java
+++ b/src/ast/nodes/AtomNode.java
@@ -53,7 +53,8 @@ public class AtomNode implements Node {
Pattern noneVariable = Pattern.compile("^(None)$");
Pattern booleanVariable = Pattern.compile("^(True|False)$");
Pattern reservedWords = Pattern.compile("^(continue|break|int|float)$");
- // this regex should match every possible atom name written in this format: CHAR (CHAR | DIGIT)*
+ // this regex should match every possible atom name written in this format: CHAR
+ // (CHAR | DIGIT)*
Pattern simpleVariable = Pattern.compile("^[a-zA-Z][a-zA-Z0-9]*$", Pattern.CASE_INSENSITIVE);
Matcher noneVariableMatcher = noneVariable.matcher(this.val);
@@ -87,6 +88,7 @@ public class AtomNode implements Node {
@Override
public String toPrint(String prefix) {
+ // FIXME: can be a testlist_comp with two expr and two atoms
if (val != null) {
return prefix + "Atom(" + val + ")\n";
}