SWP-Ubau-SoSe2014-Haskell / SWPSoSe14

Rail compiler written in Haskell
MIT License
3 stars 1 forks source link

Bug in exportAST #180

Closed cpockrandt closed 10 years ago

cpockrandt commented 10 years ago

Rail program (important fact is \n in the string):

$ 'main' (--):
 \                         
  \                               
   \-[Hallo!\n\]--\            
                  | 
               #  |
                o |
                 \|
                  \     -------           
                   \   /       \                
                    \ | -----\  \                    
                     \|/      | |                
                /-----*-------/ /               
               |     /|\       /
               \    @ / -------              
                ------    

Export AST (\n is not exported correctly):

[main]
1;[Hallo!
];2;0
2;o;3;0
3;#;0;0`

Import AST:

xconnect@devel:~/GitHub/SWPSoSe14$ ./dist/build/RailCompiler/RailCompiler --input="/home/xconnect/raily.ast" --output="/home/xconnect/raily.ll" --importAST
RailCompiler: Closing Bracket not found.