<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>devkuma – Lua</title>
    <link>https://www.devkuma.com/en/tags/lua/</link>
    <image>
      <url>https://www.devkuma.com/en/tags/lua/logo/180x180.jpg</url>
      <title>Lua</title>
      <link>https://www.devkuma.com/en/tags/lua/</link>
    </image>
    <description>Recent content in Lua on devkuma</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>kc@example.com (kc kim)</managingEditor>
    <webMaster>kc@example.com (kc kim)</webMaster>
    <copyright>The devkuma</copyright>
    
	  <atom:link href="https://www.devkuma.com/en/tags/lua/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Lua Overview</title>
      <link>https://www.devkuma.com/en/docs/lua/overview/</link>
      <pubDate>Sun, 21 Apr 2024 20:50:00 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/lua/overview/</guid>
      <description>
        
        
        &lt;h2 id=&#34;intended-audience&#34;&gt;Intended Audience&lt;/h2&gt;
&lt;p&gt;This article is intended for readers with experience programming in C or a related language such as C++, C#, or Java. Familiarity with basic syntax such as &lt;code&gt;if&lt;/code&gt;, &lt;code&gt;for&lt;/code&gt;, &lt;code&gt;while&lt;/code&gt;, and defining functions is sufficient.
However, the explanations are written to be understandable even for readers who do not know C or a similar language.&lt;/p&gt;
&lt;h2 id=&#34;about-the-lua-language&#34;&gt;About the Lua Language&lt;/h2&gt;
&lt;p&gt;There is a reason this article assumes some knowledge of C or a similar language.
Lua is commonly called from or embedded in C programs, so programs are rarely written only in Lua.&lt;/p&gt;
&lt;h2 id=&#34;setting-up-the-development-environment&#34;&gt;Setting Up the Development Environment&lt;/h2&gt;
&lt;h3 id=&#34;setting-up-the-environment-on-windows&#34;&gt;Setting Up the Environment on Windows&lt;/h3&gt;
&lt;p&gt;Download and install the latest version from the History section of the following page.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://luabinaries.sourceforge.net/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Lua Binaries&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;setting-up-the-environment-on-macos&#34;&gt;Setting Up the Environment on macOS&lt;/h3&gt;
&lt;p&gt;On macOS, install Lua with Homebrew using the following command.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://formulae.brew.sh/formula/lua&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://formulae.brew.sh/formula/lua&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-zsh&#34; data-lang=&#34;zsh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;brew install lua
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After installation, check the version.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-zsh&#34; data-lang=&#34;zsh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;% lua -v
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Lua 5.4.6  Copyright &lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;(&lt;/span&gt;C&lt;span style=&#34;color:#ce5c00;font-weight:bold&#34;&gt;)&lt;/span&gt; 1994-2023 Lua.org, PUC-Rio
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the version is displayed, Lua was installed successfully.&lt;/p&gt;
&lt;h3 id=&#34;setting-up-the-development-environment-in-visual-studio-code&#34;&gt;Setting Up the Development Environment in Visual Studio Code&lt;/h3&gt;
&lt;h4 id=&#34;installing-extensions&#34;&gt;Installing Extensions&lt;/h4&gt;
&lt;p&gt;Open Visual Studio Code and install the Lua and Lua Debug extensions.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/lua/lua-vscode-1.png&#34; alt=&#34;Lua Visual Studio Code&#34;&gt;&lt;/p&gt;
&lt;p&gt;Then install Code Runner.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/lua/lua-vscode-2.png&#34; alt=&#34;Lua Visual Studio Code&#34;&gt;&lt;/p&gt;
&lt;h4 id=&#34;running-lua&#34;&gt;Running Lua&lt;/h4&gt;
&lt;p&gt;Create a Lua file, enter &lt;code&gt;print(&amp;quot;Hello World!&amp;quot;)&lt;/code&gt;, and click the Run button.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/lua/lua-vscode-3.png&#34; alt=&#34;Lua Visual Studio Code&#34;&gt;&lt;/p&gt;
&lt;p&gt;The output is displayed as shown above.&lt;/p&gt;

      </description>
      
      <category>Lua</category>
      
    </item>
    
    <item>
      <title>Lua</title>
      <link>https://www.devkuma.com/en/docs/lua/</link>
      <pubDate>Sun, 21 Apr 2024 20:39:00 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/lua/</guid>
      <description>
        
        
        &lt;p&gt;This section explains the Lua language.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.lua.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.lua.org/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/lua/Lua-Logo.svg&#34; alt=&#34;Lua Logo&#34;&gt;&lt;/p&gt;

      </description>
      
      <category>Lua</category>
      
    </item>
    
  </channel>
</rss>
