-
macOS에서 Ada실행하기 alr활용하면 될듯 alr run 이러네 ㅎㅎ 러스트 스타일코딩Coding/Ada❤️Language 2022. 11. 2. 11:21728x90
https://github.com/alire-project/alire/
Creating a new crate
Alire allows you to initialize an empty binary or library crate with ease:
- Issue alr init --bin myproj (you can use --lib for a library project)
- GitHub login: is used to identify the maintainer of the crate when contributed to the community index.
- Full name: Name of the author of the crate
- Email address: Point of contact to author of the crate
- The alr init command will create a basic crate structure in the myproj directory.
- The first time you run this command, alr will ask a couple of questions to automatically fill-in information about the crate:
- Enter the folder: cd myproj
- Build the crate: alr build
- Run the program: alr run
We can now edit the sources of this executable in the src/ directory. For instance, add a “Hello world” to src/myproj.adb:
with Ada.Text_IO; procedure Myproj is begin Ada.Text_IO.Put_Line ("Hello, world!"); end Myproj;
Use alr run to build and run the program again:
$ alr run # Building myproj/myproj.gpr... Compile [Ada] myproj.adb Bind [gprbind] myproj.bexch [Ada] myproj.ali Link [link] myproj.adb Build finished successfully in 0.35 seconds. Hello, world!
https://alire.ada.dev/docs/#getting-started
반응형'코딩Coding > Ada❤️Language' 카테고리의 다른 글
Ada❤️Doubly listed list 구현 (2) 2023.10.08 Why is Ada💕 a "safety critical" language? Some things I notice are ... (0) 2023.01.17 Ada on Windows and Linux: an installation guide (0) 2022.12.15 Ada CocInstall coc-als_필요없는 coclspserver 지우기 (0) 2022.11.28 Adding Ada to Rust (0) 2022.11.01 MSYS2 를 통해 MinGW-W64 설치하기 (윈도우에서 사용하는 GCC) (0) 2022.09.23 ada programming language compile gcc -c hello.adb (0) 2022.09.22 Ada ❤Tutorial (0) 2022.09.22 - Issue alr init --bin myproj (you can use --lib for a library project)