LoginSignup
4

More than 5 years have passed since last update.

Linux 上の Visual Basic コンパイラー

Last updated at Posted at 2017-05-19

Arch Linux でのインストール方法

yaourt -Sb mono-basic
vb01.vb
' ------------------------------------------------------------------
'   vb01.vb
'
'                   May/19/2017
' ------------------------------------------------------------------
public class compiler
shared function Main as integer
Console.WriteLine ("*** start ***")
Console.WriteLine ("Good Afternoon")
Console.WriteLine ("*** end ***")
return 0
End function
end class
' ------------------------------------------------------------------
Makefile
vb01.exe: vb01.vb
    vbnc vb01.vb
clean:
    rm -f vb01.exe

実行

$ mono vb01.exe 
*** start ***
Good Afternoon
*** end ***

次の環境で動作を確認しました。

$ uname -a
Linux iwata 4.16.10-1-ARCH #1 SMP PREEMPT Mon May 21 07:57:23 UTC 2018 x86_64 GNU/Linux
$ mono --version
Mono JIT compiler version 5.12.0 (makepkg/9824e260f56 Wed May 16 00:11:44 CEST 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          supported, not enabled.
    GC:            sgen (concurrent by default)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4