Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a python user I don't know how to run my "hello world!" in erg #31

Closed
ShantanuKumar opened this issue Aug 16, 2022 · 12 comments · Fixed by #37
Closed

As a python user I don't know how to run my "hello world!" in erg #31

ShantanuKumar opened this issue Aug 16, 2022 · 12 comments · Fixed by #37
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ShantanuKumar
Copy link
Contributor

ShantanuKumar commented Aug 16, 2022

I just installed it locally. Now I don't know how can I play around with it.

@ShantanuKumar ShantanuKumar changed the title As a python user I can As a python user I don't know how to run my "hello world!" Aug 16, 2022
@ShantanuKumar ShantanuKumar changed the title As a python user I don't know how to run my "hello world!" As a python user I don't know how to run my "hello world!" in erg Aug 16, 2022
@ShantanuKumar
Copy link
Contributor Author

Well that was easy, I had to just type erg for the REPL. Not sure if this should be mentioned in Basics

@mtshiba
Copy link
Member

mtshiba commented Aug 16, 2022

To start REPL, simply type:

> erg

> mark is a prompt, just type erg.
Then the REPL should start.

> erg
Starting the REPL server...
Connecting to the REPL server...
Erg interpreter 0.2.4 (tags/?:, 2022/08/17  0:55:12.95) on x86_64/windows
>>>

After that, it is the same as the Python REPL.

Or you can compile from a file.

> 'print! "hello, world!"' >> hello.er

> erg hello.er
hello, world!

@mtshiba mtshiba added the documentation Improvements or additions to documentation label Aug 16, 2022
@mtshiba
Copy link
Member

mtshiba commented Aug 16, 2022

I would like to add this to the document later.

@ShantanuKumar
Copy link
Contributor Author

I can open a pull request if that's something ok with you?

@mtshiba
Copy link
Member

mtshiba commented Aug 16, 2022

Thank you! Please.

@ghost
Copy link

ghost commented Aug 17, 2022

Hello, sir I am interested in solving this issue. so please assign to me this issue.

@ghost
Copy link

ghost commented Aug 17, 2022

Now, What should I do?

@mtshiba mtshiba assigned ShantanuKumar and ghost Aug 17, 2022
@mtshiba
Copy link
Member

mtshiba commented Aug 17, 2022

To start REPL, simply type:

> erg

> mark is a prompt, just type erg. Then the REPL should start.

> erg
Starting the REPL server...
Connecting to the REPL server...
Erg interpreter 0.2.4 (tags/?:, 2022/08/17  0:55:12.95) on x86_64/windows
>>>

After that, it is the same as the Python REPL.

Or you can compile from a file.

> 'print! "hello, world!"' >> hello.er

> erg hello.er
hello, world!

Please add this to the syntax/00_basic.md.

@mtshiba
Copy link
Member

mtshiba commented Aug 17, 2022

After ## Scripts, add a section name such as ## REPL/File Execution.

@ghost
Copy link

ghost commented Aug 17, 2022 via email

@mtshiba
Copy link
Member

mtshiba commented Aug 17, 2022

I will write instructions. Please wait.

@mtshiba
Copy link
Member

mtshiba commented Aug 17, 2022

This issue is a documentation improvement. Please follow the instructions below to rewrite the documentation.

Here is how to do it using GitHub desktop. If you can use git, you don't have to use it.

It is also quite carefully written for those who would like to contribute to this project in the future.

  1. Clone this repository (open here using your browser, then click code, and click Open with GitHub Desktop).

スクリーンショット 2022-08-17 14 45 20

  1. Open doc/EN/syntax/00_basic.md (by using VS Code, etc.).

  2. After ## Scripts section, add a section name such as ## REPL/File Execution.

  3. In that section, insert the text I just wrote (As a python user I don't know how to run my "hello world!" in erg #31 (comment)).

  4. Back to GitHub desktop, and create a fork (choose To contribute ...).

  5. Commit to main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants