-
Notifications
You must be signed in to change notification settings - Fork 43
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement Request - Escape " in strings #10
Comments
An other option is just use single single quotes in that case ( str: 'asdf
"qwer" zxc'). But adding escape support makes sens too. I'll check if it
brakes something, and if not I'll integrate it.
…On Mon, Jan 9, 2017 at 9:41 PM, Craig Lindley ***@***.***> wrote:
The application I am writing uses a lot of strings. In this app I need to
embed double quotes in other strings. I need to do things like: ""Hello
World""
To this end I made the following change to core.frt
: eschr ( char -- char ) \ read next char from stdin
dup [ char: \ ] literal = if
drop key case
[ char: r ] literal of 13 endof
[ char: n ] literal of 10 endof
[ char: t ] literal of 9 endof
[ char: \ ] literal of 92 endof
[ char: " ] literal of 34 endof \ CAL
EESCAPE throw
endcase
then ;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnJVcN4dvcc0eZCTwUEEh_DpUXp-yFyks5rQpt_gaJpZM4LetG1>
.
|
zeroflag
pushed a commit
that referenced
this issue
Jan 13, 2017
integrated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The application I am writing uses a lot of strings. In this app I need to embed double quotes in other strings. I need to do things like: ""Hello World""
To this end I made the following change to core.frt
The text was updated successfully, but these errors were encountered: