needmoreeasy EN 한국어
Learn

01 — Hello: say your first words

★☆☆☆☆ (1/5)first program and output
Prerequisites
none
You will end up with
a program that prints a message with nme run

Your first program. NME prints whatever follows show — no quotes, no parentheses.

Steps

  1. Create a file named hello.nme in an empty folder and write:

    show Hello world!
    
    run it →
  2. Run it:

    nme run hello
    

    The console prints Hello world!. show is the action; the rest is the message.

  3. The same idea works in Korean, and English and Korean can share one file. Replace the file with:

    안녕하세요! 말해줘
    
    run it →

    말해줘 is the Korean action for show.

  4. NME also understands plain speech without an action word when the line is a natural sentence:

    Hello everyone!
    오늘도 반가워요!
    
    run it →

Try it yourself

Change the message to your own name or a favorite place, save, and run nme r hello again. The shortcut nme r is the same as nme run.

What you learned

  • nme run hello runs hello.nme; nme r hello is the shortcut.
  • show message prints the rest of the line; 말해줘 is the Korean action.
  • No quotes, commas, or parentheses are needed for a sentence.
  • A natural one-line sentence prints by itself.

This page on GitHub