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

fix(compiler): Refactor values [fixes LNG-57] #821

Merged
merged 19 commits into from
Aug 15, 2023

Conversation

InversionSpaces
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Aug 1, 2023

LNG-57 `if Op.identity(stream)! == "OK"` doesn't parse

Version

0.7.2-303

Code

import "fluencelabs/aqua-lib/builtin.aqua"

func bug():
    stream: *string
    if Op.identity(stream)! == "OK":
        Op.noop()

Error

 % aqua run -i stream_bug.aqua -f 'bug()' --addr krasnodar-01
---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:27
5     if Op.identity(stream)! == "OK":
                            ^=========
                            Expected symbol ':'

---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:8
5     if Op.identity(stream)! == "OK":
         ^============================
         Expected one of these strings: '<<-'
         OR Expected symbol ':'
         OR Expected symbol '='
         OR Missing braces '()' after the function call (List(Expected symbol '('))
         OR Only results of a function call can be written to a stream

---- Syntax error: /Users/folex/Development/aqua_scripts/stream_bug.aqua:5:5
5     if Op.identity(stream)! == "OK":
      ^===============================
      Expected one of these strings: '<-', 'catch', 'co', 'else', 'for', 'join', 'on', 'otherwise', 'par', 'try'
      OR Expected symbols from 'A' to 'Z'

@InversionSpaces InversionSpaces added the e2e Run e2e workflow label Aug 10, 2023
@InversionSpaces InversionSpaces force-pushed the fix/value-properties branch 3 times, most recently from 15c1045 to 40f04bc Compare August 11, 2023 13:11
@InversionSpaces InversionSpaces marked this pull request as ready for review August 14, 2023 11:22
@InversionSpaces InversionSpaces enabled auto-merge (squash) August 14, 2023 11:22
@InversionSpaces InversionSpaces merged commit f562bd4 into main Aug 15, 2023
@InversionSpaces InversionSpaces deleted the fix/value-properties branch August 15, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants