You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
balsoft opened this issue
Oct 27, 2022
· 2 comments
Assignees
Labels
backendsAnything related to a given backend (which is currently just Axel->Haskell).bugA bona fide implementation mistake.criticalThis issue is a showstopper and needs immediate attention.syntaxAnything related to Axel's surface syntax.
(module Main)
(= example "This should be a quotation mark: \"")
(= main (print example))
Transpiles to the following Haskell code:
moduleMainwhereimportAxelimportqualifiedPreludeasGHCPreludeimportqualifiedAxel.Parse.ASTasAST
example ="This should be a quotation mark: ""main = (print example)
Which, for obvious reasons, does not compile.
Is this expected? I couldn't find anything specific about the way Axel is supposed to be treating escapes in the documentation, but the String literals section gives an example which includes an escape sequence.
The text was updated successfully, but these errors were encountered:
jgrosso
added
bug
A bona fide implementation mistake.
syntax
Anything related to Axel's surface syntax.
backends
Anything related to a given backend (which is currently just Axel->Haskell).
labels
Oct 27, 2022
This is rather embarrassing: Turns out, \t (and other escape sequences in general) are also being output inappropriately. In theory, I had golden tests which should've caught this issue. But, apparently, I only ever visually confirmed that the files looked like valid Haskell, instead of actually trying to run them in GHC. Among other things, this meant I couldn't easily tell when inappropriate whitespace like \t snuck in.
backendsAnything related to a given backend (which is currently just Axel->Haskell).bugA bona fide implementation mistake.criticalThis issue is a showstopper and needs immediate attention.syntaxAnything related to Axel's surface syntax.
This axel file:
Transpiles to the following Haskell code:
Which, for obvious reasons, does not compile.
Is this expected? I couldn't find anything specific about the way Axel is supposed to be treating escapes in the documentation, but the String literals section gives an example which includes an escape sequence.
The text was updated successfully, but these errors were encountered: