aboutsummaryrefslogtreecommitdiff
path: root/tests/i/underscore-identifiers
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 08:02:20 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 08:02:20 +0000
commit34a4998658674411ef3b5a392483990467a5d6e2 (patch)
treeace5773a4890ffb88d8f3338f9938d4dfa929804 /tests/i/underscore-identifiers
parente7320359c12b97ccb85ebfb06b2540124630df7b (diff)
feat(lexer): accept identifiers starting with an underscore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/underscore-identifiers')
-rw-r--r--tests/i/underscore-identifiers/case.json1
-rw-r--r--tests/i/underscore-identifiers/expected.txt1
-rw-r--r--tests/i/underscore-identifiers/program.cps9
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/i/underscore-identifiers/case.json b/tests/i/underscore-identifiers/case.json
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/tests/i/underscore-identifiers/case.json
@@ -0,0 +1 @@
+{}
diff --git a/tests/i/underscore-identifiers/expected.txt b/tests/i/underscore-identifiers/expected.txt
new file mode 100644
index 0000000..d81cc07
--- /dev/null
+++ b/tests/i/underscore-identifiers/expected.txt
@@ -0,0 +1 @@
+42
diff --git a/tests/i/underscore-identifiers/program.cps b/tests/i/underscore-identifiers/program.cps
new file mode 100644
index 0000000..60d7b32
--- /dev/null
+++ b/tests/i/underscore-identifiers/program.cps
@@ -0,0 +1,9 @@
+CLASS _EXP_FOO
+ _Value : INTEGER
+ENDCLASS
+FUNCTION _Read(_Arg : INTEGER) RETURNS INTEGER
+ RETURN _Arg + 1
+ENDFUNCTION
+DECLARE _X : _EXP_FOO
+_X._Value <- _Read(41)
+OUTPUT _X._Value