Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuccessorML extended text constants #74

Merged
merged 3 commits into from
Jan 9, 2023
Merged

Conversation

shwestrick
Copy link
Owner

@shwestrick shwestrick commented Jan 9, 2023

Fixes #49 and additional progress on #47.

Command-line option -allow-extended-text-consts true allows for UTF-8 bytes within strings, for example:

val a = "馃嵃"
val x = print "馃偂\n"

This can also be controlled from within an MLB following MLton conventions:

ann "allowExtendedTextConsts true" in
  foo.sml
end

Note that this feature does not check for validity of a UTF-8 byte sequence. We could add that later, if desired.

@shwestrick shwestrick merged commit 5188a13 into main Jan 9, 2023
@shwestrick shwestrick deleted the allow-extended-text-consts branch January 9, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support mlb option "allowExtendedTextConsts true"
1 participant