Skip to content

A programming language. A skald was a Norse poet or bard who composed and recited verses celebrating heroes and Norse gods. They used complex forms and wordplay, playing a key role in preserving Viking history, mythology, and culture.

License

Notifications You must be signed in to change notification settings

Felipalds/skald

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skald

A skald is a term used to describe a poet, especially one from the Viking Age and medieval Scandinavian culture. Skalds were known for their skills in composing and reciting poetry, often in praise of kings, nobles, and other notable figures. Their poetry, known as skaldic poetry, was often complex and featured intricate meter and wordplay. Skalds played an important role in preserving history, legends, and the genealogies of rulers through their oral traditions. Their works were typically composed in Old Norse and have been preserved in various sagas and historical records.

  • SISTEMA DE TIPOS (3 TIPOS)
    • str (ascii \0)
    • real (float64)
    • int (int64)
  • ESTRUTURA DO PROGRAMA / SINTAXE
    • var/rav, main/niam
    • loop/pool e if/or/fi,
    • stop, die
    • in, out
    • . termina declaração
    • $ inicia comentário
    • sem chaves, usar do
    • sem parênteses no condicional
  • OPERAÇÕES
    • atribuição <-, ex. a <- 1
    • aritmética +, -, *, /, %, ˆ
    • lógica &, |, !
    • relacional <, <=, >=, >, =, !=

Programa exemplo

var
    a int.
    b int.
    c int.
    counter int.
rav

main
    a <- 1.
    b <- 1.

    in counter.
    if counter < 0 do
        out "Erro mortal \n".
        die.
    fi
        
    loop counter > 0 do
        out "fibonacci ".
        out a.
        out "\n"

        c <- a + b.
        a <- b.
        b <- c.
        counter <- counter - 1.
        
        if counter = 1 do
            out "Acabando \n".
            stop.
        or
            out "Não acabando \n".
        fi
    pool
niam

Compilação

Executar make no diretório do projeto. Para executar, ./skald caminho/do/arquivo, há arquivos exemplo no diretório examples

About

A programming language. A skald was a Norse poet or bard who composed and recited verses celebrating heroes and Norse gods. They used complex forms and wordplay, playing a key role in preserving Viking history, mythology, and culture.

Resources

License

Stars

Watchers

Forks

Packages

No packages published