HVML / PurC

The prime HVML interpreter for C Language.
GNU Lesser General Public License v3.0
1.05k stars 54 forks source link

The output is different while running readme`s demo on ubuntu22.04, x86_64 #37

Closed GooTal closed 1 year ago

GooTal commented 1 year ago

Hi, i installed purc using this command:

$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Linux -B build && cmake --build build && sudo cmake --install build

And did as readme said: 图片 But i got no more message but this: 图片

Additionally, i try to run hello world demo as readme described: 图片 But i got two message printing: 图片

Is there something i missed?

VincentWei commented 1 year ago

Sorry that there is a bug in this version.

For a workaround, you can use -b for the verbose output:

$ purc -b error.hvml

We will fix this bug in Version 0.9.2, which will be released in the near future.

GooTal commented 1 year ago

I pulled the master branch, and it seems that -b option is not support anymore. 图片 I used -h option and got that -v is for verbose output. But still got no more verbose output. 图片

VincentWei commented 1 year ago

Edit this file:

https://github.com/HVML/PurC/blob/master/Source/Executables/purc/purc.c

Change Line 420 to

case 'V':

Change Line 485 to

case 'v':

Hope this can help you.

GooTal commented 1 year ago

Thanks a lot! Hoping a better version in the near future :). 真心希望hvml变强变好!

VincentWei commented 1 year ago

Many thanks for your encouragement!

VincentWei commented 1 year ago

We just pushed the latest code to this repo. The bug mentioned in this issue has been fixed.

Thanks for your patience!