-
Notifications
You must be signed in to change notification settings - Fork 2
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
String spaces #48
String spaces #48
Conversation
Modified ast.h to add a new token type for string, char type for quotes, and a parse state for string. Modified get_char_type and get_token to support spaces in strings ```slog (edge "well string") (edge "well another string)") (edge "yet another ! ? string") ``` Goes through succesfully
can you add a CI case for this? |
```slog ; Strings with spaces (strs 1 "well string") (strs 2 "well another string)") (strs 3 "yet another ! ? string") [(strs _ str_val) --> (just_str str_val)] ``` Goes Through.
@StarGazerM
|
can you add the testcase in https://github.com/harp-lab/slog-lang1/tree/master/slog/tests/testcase , there is some CI script could read in test case there |
This commit has that added and the script is able to pick it up |
This commit only supports strings when loaded from the slog file and fails when loaded from csv files, as does the main branch. |
#49 Issue is also also worked in this PR, along with support for spaces in strings |
modified compiler/src/interpreter.rkt, strings in the source file were being hashed with quotes, but were being written to strings.csv without the quotes. modified client.py to remove the extra quotes being added, and causing hash mismatch for strings loaded from csv. added a test in stringtest in CI
@StarGazerM Strings from fact files work, CI test goes through. Please let me know if there is any concern. |
Modified ast.h to add a new token type for string, char type for quotes,
and a parse state for string.
Modified get_char_type and get_token to support spaces in strings
Goes through successfully
Updated repl_and_runslog.md.