Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parsing error on $a' #367

Closed
chriselrod opened this issue Jan 2, 2023 · 1 comment
Closed

Parsing error on $a' #367

chriselrod opened this issue Jan 2, 2023 · 1 comment

Comments

@chriselrod
Copy link

chriselrod commented Jan 2, 2023

julia> CSTParser.parse(raw":($a')")
  1:6   quote
  1:5    brackets
  1:3     errortoken( CSTParser.UnexpectedToken)
  1:2        1:1   OP: $
  1:1       a
  3:3      OP: '

julia> CSTParser.parse(raw"$a'")
  1:3   errortoken( CSTParser.UnexpectedToken)
  1:2      1:1   OP: $
  1:1     a
  3:3    OP: '

julia> CSTParser.parse(raw"$a")
  1:2     1:1   OP: $
  1:1    a

julia> CSTParser.parse(raw"a'")
  1:2     1:1   OP: '
  1:1    a

:($a') is of course a legitimate Julia expr, e.g. when interpolating into an Expr in which you're taking the adjoint.

@pfitzseb
Copy link
Member

pfitzseb commented Jan 8, 2024

Fixed by #380.

@pfitzseb pfitzseb closed this as completed Jan 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants