polserver/testsuite/escript/bug
Kevin Eady e41f70d72e
Add support for interpolated strings ("interstrings") (#369)
* Update grammar to support interpolated strings

* Struct initializers, case switchs are regular strings

* Initial stub for interpolated string in AST
This splits the previous STRING_LITERAL terminal into a production,
stringLiteral, to handle REGULAR_STRING terminal and interpolatedString
production.

* Change interpolated strings to expressions

* Fix mode handling in grammar

* Grammar fixes
- Fix mode handling in lexer
- Interpolated strings only have one expression

* Can successfully parse, stub compile interstrings
$"He {there + print("hello")}";

* Add formatting string to grammar

* Fix tests, and add test stubs

* Rename curleys to brace; better AST generation

* initial work interstring instruction

* Initial work on formatted string instruction: emit

* Formatted string instruction: execution

* Add simple formatted string test

* Add formatted string test src

* Review changes #1
- Rename `FormattedString` to `FormatExpression`
- Rename overloaded `try_to_format()` to `get_formatted()`

* Review changes part 2
- Rename `InterpolatedString` ast node to `InterpolateString`

* Review changes part 3
- Modify `ins_interpolate_string`

* Review changes part 4
- Remove unused formal parameter

* Add negative tests

* Spruce up positive tests

* Fix braces, escape chars inside interstring

* Fix, add tests for escaped char and double brace

* Address differences for new lines in tests

* Update Escript version

* Make empty expression an error

* Add documentation for interpolated strings

* Quick touchup on docs
2021-03-11 22:48:16 +01:00
..
bug.err Remove OGC from EcompileMain, testsuites (#383) 2021-03-04 17:39:14 +01:00
bug.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug001.out Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug001.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug002.out Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug002.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug003.out Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug003.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug004.cot Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug004.err Remove OGC from EcompileMain, testsuites (#383) 2021-03-04 17:39:14 +01:00
bug004.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug005.out Unit tests: full revision, now all run correctly 2015-12-19 05:31:23 +01:00
bug005.src Unit tests: full revision, now all run correctly 2015-12-19 05:31:23 +01:00
bug006.err Remove OGC from EcompileMain, testsuites (#383) 2021-03-04 17:39:14 +01:00
bug006.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug007.err Remove OGC from EcompileMain, testsuites (#383) 2021-03-04 17:39:14 +01:00
bug007.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug008.err Remove OGC from EcompileMain, testsuites (#383) 2021-03-04 17:39:14 +01:00
bug008.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
bug010-if-statement-optimization-offset-corruption.out Fix optimization error: will sometimes patch an offset of the wrong instruction when 2020-06-14 03:31:03 -07:00
bug010-if-statement-optimization-offset-corruption.src Add bug010 - optimizer bug with if statements 2020-06-13 19:10:33 -07:00
bug011-module-function-param-name-clash.out Fix compiler bug: user functions should be able to have the same name as module function parameter names 2020-06-15 22:27:57 -07:00
bug011-module-function-param-name-clash.src Fix compiler bug: user functions should be able to have the same name as module function parameter names 2020-06-15 22:27:57 -07:00
bug012-function-as-named-parameter.out Fix compiler bug: user functions should be able to have the same name as module function parameter names 2020-06-15 22:27:57 -07:00
bug012-function-as-named-parameter.src Fix compiler bug: user functions should be able to have the same name as module function parameter names 2020-06-15 22:27:57 -07:00
bug013-local-variable-index.src Fix a bug in the legacy compiler .ecl output 2020-07-29 00:05:52 -07:00
crash001.err Add support for interpolated strings ("interstrings") (#369) 2021-03-11 22:48:16 +01:00
crash001.inc Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00
crash001.src Unit Tests: putting some orde rin escript unit tests 2015-12-19 02:31:08 +01:00