OSDN Git Service

fix StrLiteral and BytesLiteral to support constant (#11)
authoroysheng <33340252+oysheng@users.noreply.github.com>
Fri, 28 Sep 2018 11:25:26 +0000 (19:25 +0800)
committerPaladz <yzhu101@uottawa.ca>
Fri, 28 Sep 2018 11:25:26 +0000 (19:25 +0800)
commit38a476b9a5bed09fef310a89216e5da4c5e1e956
tree676b666d024b0fb7c8c3570cc399de5a02b6bc5b
parent72bd3e97ce35106d0c5c7b8d6cfdb0f9e8359a96
fix StrLiteral and BytesLiteral to support constant  (#11)

* modify to support BytesLiteral

* optimise

* fix string literal and add escape character

* add unit test for constant
compiler/compile_test.go
compiler/equitytest/equitytest.go
compiler/parse.go