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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request - Escape " in strings #10

Closed
ghost opened this issue Jan 9, 2017 · 2 comments
Closed

Enhancement Request - Escape " in strings #10

ghost opened this issue Jan 9, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2017

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 ;
@zeroflag
Copy link
Owner

zeroflag commented Jan 9, 2017 via email

@zeroflag
Copy link
Owner

integrated

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

No branches or pull requests

1 participant