<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://dinolang.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://dinolang.ru/feed.php">
        <title>DinoLang - examples</title>
        <description></description>
        <link>https://dinolang.ru/</link>
        <image rdf:resource="https://dinolang.ru/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-05-14T10:56:33+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://dinolang.ru/examples:99bottles?rev=1611794992&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:args?rev=1627271434&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:calc?rev=1637902500&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:emeraldplayer?rev=1627820466&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:fs_test?rev=1611794795&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:ircbot?rev=1706738680&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:notepadppsyntax?rev=1706219129&amp;do=diff"/>
                <rdf:li rdf:resource="https://dinolang.ru/examples:sockettest?rev=1659053904&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://dinolang.ru/_media/wiki:dokuwiki.svg">
        <title>DinoLang</title>
        <link>https://dinolang.ru/</link>
        <url>https://dinolang.ru/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://dinolang.ru/examples:99bottles?rev=1611794992&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-01-28T00:49:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>99bottles</title>
        <link>https://dinolang.ru/examples:99bottles?rev=1611794992&amp;do=diff</link>
        <description>Пример: 99bottles

Печатает знаменитую песенку &quot;99 бутылок&quot; на английском


use, &quot;strings&quot;

bottles = 99

if bottles == 0
	print, &quot;No more bottles of beer on the wall, no more bottles of beer.&quot;
	print, &quot;Go to the store and buy some more, 99 bottles of beer on the wall...&quot;
	exit, 0
else
	strings:itoa, bottles
	append, returned, &quot; bottles of beer on the wall&quot;
	print, returned
	strings:itoa, bottles
	append, returned, &quot; bottles of beer!&quot;
	print, returned
	print, &quot;Take one down, pass it around&quot;
	bot…</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:args?rev=1627271434&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-26T03:50:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>args</title>
        <link>https://dinolang.ru/examples:args?rev=1627271434&amp;do=diff</link>
        <description>Пример: Продвинутые аргументы

Считает возраст человека, используя метод strings:split для разделения аргументов командной строки.


use, &quot;strings&quot;
if arg == &quot;nil&quot;
	print, &quot;Missed params: date of birth and current year&quot;
	exit, 1
end

strings:split, arg, &quot; &quot;, args
if returned &lt; 2
	print, &quot;Missed params: date of birth and current year&quot;
	exit, 1
end

strings:atoi, args[0]
birth = returned
strings:atoi, args[1]
current = returned
strings:itoa, current-birth
append, &quot;Age: &quot;, returned
print, returned…</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:calc?rev=1637902500&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-11-26T04:55:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>calc</title>
        <link>https://dinolang.ru/examples:calc?rev=1637902500&amp;do=diff</link>
        <description>Пример: calc

Простейший калькулятор


if arg == &quot;nil&quot;
	print, &quot;Usage: [first_num] [+|-|*|/] [second_number]&quot;
	exit, 1
end

use, &quot;strings&quot;
strings:split, arg, &quot; &quot;, args
if returned &lt; 3
	print, &quot;Missed params!&quot;
	exit, 2
end

strings:atoi, args[0]
x = returned
strings:atoi, args[2]
y = returned
op = args[1]

res = 0
if op == &quot;+&quot;
	res = x+y
elif op == &quot;-&quot;
	res = x-y
elif op == &quot;*&quot;
	res = x*y
elif op == &quot;/&quot;
	res = x/y
end

strings:itoa, res
append, &quot;Result: &quot;, returned
print, returned…</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:emeraldplayer?rev=1627820466&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-08-01T12:21:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>emeraldplayer</title>
        <link>https://dinolang.ru/examples:emeraldplayer?rev=1627820466&amp;do=diff</link>
        <description>Пример: EmeraldPlayer

Небольшой аудио проигрователь, использующий библиотеку bass.

Внимание! Для этого скрипта необходима сборка DinoLang со встроенным классом</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:fs_test?rev=1611794795&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-01-28T00:46:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fs_test</title>
        <link>https://dinolang.ru/examples:fs_test?rev=1611794795&amp;do=diff</link>
        <description>Пример: fs_test

Проверяет функции класса fs

Исходный код


use, &quot;fs&quot;

printc, &quot;Checking fs:makedir... &quot;
fs:makedir, &quot;test.d&quot;
sleep, 500
if returned == 1
	print, &quot;OK&quot;
end

printc, &quot;Checking fs:move... &quot;
fs:move, &quot;test.d&quot;, &quot;test2.d&quot;
sleep, 500
if returned == 1
	print, &quot;OK&quot;
end

printc, &quot;Checking fs:remove... &quot;
fs:remove, &quot;test2.d&quot;
sleep, 500
if returned == 1
	print, &quot;OK&quot;
end

printc, &quot;Checking fs:create... &quot;
fs:create, &quot;test.tmp&quot;
sleep, 500
if returned != -1
	print, &quot;OK&quot;
	file = returned
end

pr…</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:ircbot?rev=1706738680&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-01-31T22:04:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ircbot</title>
        <link>https://dinolang.ru/examples:ircbot?rev=1706738680&amp;do=diff</link>
        <description>Пример: Простейший IRC-bot

Умеет отвечать на команду !test сообщение &quot;Hello, World!&quot;


use, &quot;socket&quot;
use, &quot;strings&quot;

server = &quot;irc.libera.chat:6667&quot;
username = &quot;EstintaxBot&quot;
channel = &quot;#mapicom&quot;
socket:connect, server
sock = returned
append, &quot;USER &quot;, username
append, returned, &quot; * * :&quot;
append, returned, username
append, returned, &quot;\n&quot;
socket:write, sock, returned
append, &quot;NICK &quot;, username
append, returned, &quot;\n&quot;
socket:write, sock, returned
append, &quot;JOIN &quot;, channel
append, returned, &quot;\n&quot;
socket:…</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:notepadppsyntax?rev=1706219129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-01-25T21:45:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>notepadppsyntax</title>
        <link>https://dinolang.ru/examples:notepadppsyntax?rev=1706219129&amp;do=diff</link>
        <description>Синтаксис для Notepad++


&lt;NotepadPlus&gt;
    &lt;UserLang name=&quot;DinoLang&quot; ext=&quot;dino&quot; udlVersion=&quot;2.1&quot;&gt;
        &lt;Settings&gt;
            &lt;Global caseIgnored=&quot;no&quot; allowFoldOfComments=&quot;no&quot; foldCompact=&quot;no&quot; forcePureLC=&quot;0&quot; decimalSeparator=&quot;0&quot; /&gt;
            &lt;Prefix Keywords1=&quot;no&quot; Keywords2=&quot;no&quot; Keywords3=&quot;no&quot; Keywords4=&quot;no&quot; Keywords5=&quot;no&quot; Keywords6=&quot;no&quot; Keywords7=&quot;no&quot; Keywords8=&quot;no&quot; /&gt;
        &lt;/Settings&gt;
        &lt;KeywordLists&gt;
            &lt;Keywords name=&quot;Comments&quot;&gt;00# 01 02\n 03 04&lt;/Keywords&gt;
          …</description>
    </item>
    <item rdf:about="https://dinolang.ru/examples:sockettest?rev=1659053904&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-29T00:18:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sockettest</title>
        <link>https://dinolang.ru/examples:sockettest?rev=1659053904&amp;do=diff</link>
        <description>Пример: sockettest

Скрипт для примера работы класса socket

Примечание: из-за работы в другом текстовом редакторе, здесь отсутствуют отступы в блоках if-else</description>
    </item>
</rdf:RDF>
