Commit Graph

94 Commits

Author SHA1 Message Date
Rob Greene
9da332fd68 Adding shorten-numbers optimization. (0.6 is output as just .6 since leading 0 is not needed.) 2025-11-07 17:24:37 -06:00
Rob Greene
f5620f9aa0 Whitespace. 2025-11-07 17:24:11 -06:00
Rob Greene
0ed206987f Updating API docs. 2025-11-07 14:59:00 -06:00
Rob Greene
1d758a9b83 Adding number preservation tests which revealed classic tokenizer was not generating the correct tokens for '&', '+', '-', '*', '/', '^', '<', '=', and '>'. 2025-11-07 13:13:51 -06:00
Rob Greene
4a3c117d5e Now supporting 3 "tokenizers" (modern, classic, preserve). Updated output visitors (byte, print, pretty print) to support number preservation. 2025-11-06 15:06:27 -06:00
Rob Greene
3cf47af205 ClassicTokenReader now supports line continuation (\) character. 2025-11-04 14:30:39 -06:00
Rob Greene
3c3aedbcfb Renaming TokenReader. Now there is a ModernTokenReader and ClassicTokenReader. 2025-11-04 12:05:38 -06:00
Rob Greene
1b5a75359b Adding support for apostrophe as a comment. 2025-11-04 12:03:49 -06:00
Rob Greene
1c257820a0 Adding directive support. Also emitting '=' as the keyword since the parser seems to expect it. (As syntax char works as well, but that breaks directives.) 2025-11-03 18:46:32 -06:00
Rob Greene
e5b94e52ad Adding REM to ClassicTokenReader. 2025-11-03 17:22:03 -06:00
Rob Greene
6316db7b59 Adding some tests based on old tickets. 2025-11-03 14:20:50 -06:00
Rob Greene
a7c8afb705 Updating how DATA is handled - STRING assumes quotes and a new value seems appropriate. 2025-11-03 14:03:43 -06:00
Rob Greene
252d2031bb New strategy, following some existing code that works. Morphing towards the token stream. 2025-11-03 10:50:01 -06:00
Rob Greene
7c5ecc7ee5 Trying to make token testing easier to build out. 2025-10-30 20:57:58 -05:00
Rob Greene
f95ff53d78 First stab at token reader. Detects tokens too quickly at this time. 2025-10-30 14:49:56 -05:00
Rob Greene
97ab248468 Converted Token to a record. 2025-10-30 14:49:12 -05:00
Rob Greene
02b07eafc5 Repackaged. 2025-10-21 15:26:49 -05:00
Rob Greene
46befa1792 Updating project to run CLTH tests during nativeCompile as well. 2025-10-19 13:23:26 -07:00
Rob Greene
25e3e6168a Trying to tweak Gradle configuration a bit. 2025-10-19 09:12:49 -07:00
Rob Greene
4e84b498de Adding license check; adding license headers. 2025-10-18 18:36:45 -07:00
Rob Greene
0026c02daf Applying Java migration aids for Java 21. 2025-10-18 18:10:14 -07:00
Rob Greene
5d1dad9fc9 Applying Java migration aids for Java 15. 2025-10-18 18:03:42 -07:00
Rob Greene
9c55467c09 Applying Java migration aids through Java 14. 2025-10-18 18:02:10 -07:00
Rob Greene
824f03f855 Another round of code suggestions. 2025-10-18 17:20:47 -07:00
Rob Greene
40b525ae08 First round of code suggestions. 2025-10-18 17:05:12 -07:00
Rob Greene
cd1b7f3229 String Java 21 migration. 2025-10-18 16:46:18 -07:00
Rob Greene
bda46a08c6 Updating the publishing stuff. 2025-10-13 19:16:27 -05:00
Rob Greene
56e3cc93dd Allowing variable names that contain a partial keyword (like PR# and IN#). #47 2025-10-13 16:34:56 -05:00
Rob Greene
aed6dd11c3 Adding special handling for DATA statement. #48. 2025-10-13 13:05:04 -05:00
Rob Greene
08ec27d3da Working on Graal native image capabilities. 'st' looks stable at this point. 2025-07-17 21:00:43 -05:00
Rob Greene
7644975c7d Upgrading to Gradle 8.13. 2025-07-17 17:07:18 -05:00
Rob Greene
3d936a435c Fixing Maven publish artifactId. 2023-10-31 18:27:37 -05:00
Rob Greene
5e72a68c42 Adding a "wrapper" capability to help with DOS rewriting application. #24 2023-10-30 12:53:33 -05:00
Rob Greene
089356a3a2 Adding note regarding DOS vs ProDOS for '$embed'. #24 2023-10-29 14:38:15 -05:00
Rob Greene
02269e8abb Using the same version of Gradle across all AppleCommander projects. #21 2023-10-29 14:35:21 -05:00
Rob Greene
d84d4ca1e8 Correcting call when moving to call the move code instead of the embedded code. Related to #24. 2023-10-29 13:41:44 -05:00
dependabot[bot]
013790a610 Bump junit:junit from 4.12 to 4.13.2
Bumps [junit:junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.2.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.2)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-28 17:51:54 +00:00
Ryan Schmidt
9fbbcc5b81 Fix typo in README-TOKENIZER.md 2021-10-01 18:08:36 -05:00
Rob Greene
bcfa634f7b Marking most of this class as private to prevent API poisoning.
Preparation for #43.
2020-11-25 12:38:31 -06:00
Rob Greene
71f28fccc0 First round of updates. Leaving publication and the mainClassName
reference for later. #21
2020-11-24 19:36:34 -06:00
Rob Greene
983d8d06f1 Bumping version. 2019-09-02 21:12:43 -05:00
Rob Greene
f729ef7c6d Displaying a more intelligent error message with invalid tokens in the
input stream. #20
2019-09-02 21:07:52 -05:00
kris
f7b5b050dd Support parsing '?' tokens, which is a shorthand for 'PRINT'. 2019-07-20 15:52:01 -05:00
Rob Greene
ceecbd49fa Tweaking to handle empty lines a bit better for #18. 2018-11-21 14:34:03 -06:00
Rob Greene
c43baf9c15 Updating version referenced in README. 2018-11-21 14:28:56 -06:00
Rob Greene
6989a186e6 Testing a few other types of input. 2018-11-21 14:28:27 -06:00
Rob Greene
9078361a18 Adding an optimization to shorten variable names to 1 or 2 characters.
This allows more useful variable names in the program.
2018-07-16 22:16:59 -05:00
Rob Greene
b84896c8cf Allowing a line continuation character of "\" with a newline immediately
after the "\" character.
2018-07-16 22:16:03 -05:00
Rob Greene
070b9371ec Allowing a ' to begin a full-line comment; cannot be used within a
continued line.
2018-07-16 22:14:27 -05:00
Rob Greene
e20a9c03e0 Decided that exempting "A=150" wasn't really getting anywhere. If that's
in a loop, that 150 should be pre-assigned to a "constant".
2018-07-15 18:03:13 -05:00