npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

maoe

v2.0.0

Published

Silvio Santos Programming Language

Readme

MAOE – Micro Auditório Orientado a Eventos

MAOE é uma linguagem de programação interpretada, inspirada na estética dos programas de auditório brasileiros. Mais do que uma brincadeira, é uma DSL (Domain Specific Language) funcional, com tipagem dinâmica, controle de fluxo e proteção contra loops infinitos.

"MAOE = Micro Auditório Orientado a Eventos"


🚀 Instalação e Uso

Pré-requisitos

  • Node.js (v18+)

Instalação

Clone o projeto e instale as dependências:

git clone https://github.com/testes/maoe.git
cd maoe
npm install
npm run build

Executando Programas

Para rodar um arquivo .maoe:

# Link global (opcional)
npm link

# Executar arquivo
maoe examples/pontos.maoe

# Ou via npm start
npm start examples/pontos.maoe

📜 Estrutura da Linguagem

Todo programa MAOE segue o fluxo de um programa de auditório:

MA_OEEE        // Abertura
VAMOS_BRINCAR  // Início lógico (opcional em v1)
...
E_ACABOU       // Encerramento

Variáveis e Tipos

VEM_PRA_CÁ pontos RECEBE 100    // Declaração (Number)
VEM_PRA_CÁ nome RECEBE "Silvio" // String
pontos MAIS_DINHEIRO 50         // +=
pontos TIRA_DINHEIRO 10         // -=

Entrada e Saída

MOSTRA "Qual seu nome?"
VEM_PRA_CÁ nome RECEBE PERGUNTINHA   // Input String
VEM_PRA_CÁ vai_jogar RECEBE TEM_CERTEZA_DISSO // Input Boolean (Confirm)

Controle de Fluxo

Condicionais (VALENDO)

VALENDO (pontos > 1000) {
    CERTA_RESPOSTA {
        MOSTRA "É milionário!"
    }
    ERRROUU {
        MOSTRA "Ainda não..."
    }
}

Repetição (RODA)

Loops possuem proteção automática contra Infinite Loop (MAOE_INFINITE_AUDITORIO).

RODA (pontos > 0) {
    MOSTRA "Rodando..."
}

🛡️ Segurança e Erros

A MAOE possui um sistema de proteção de runtime (A.K.A. "Diretor do Programa").

| Erro | Código | Descrição | | :--- | :--- | :--- | | Loop Infinito | MAOE_INFINITE_AUDITORIO | Disparado se um loop executa 1000+ vezes sem interação. "Vai estourar o horário da emissora!" | | Sintaxe | MAOE_SYNTAX_ERROR | Erro de parsing ou token inesperado. |


🧩 Exemplo Completo

Veja examples/pontos.maoe para um jogo de perguntas e respostas completo.

MA_OEEE
  VEM_PRA_CÁ saldo RECEBE 100
  
  RODA (saldo > 0) {
      MOSTRA "Vai apostar?"
      VALENDO (TEM_CERTEZA_DISSO) {
          saldo MAIS_DINHEIRO 100
      } ERRROUU {
          PERDEU_A_VEZ // Break
      }
  }
E_ACABOU

🛠️ Desenvolvimento

  • Lexer: Tokeniza Unicode (VEM_PRA_CÁ suporta acentos).
  • Parser: Recursive Descent Parser com suporte a blocos implícitos e explícitos.
  • CodeGen: Transpila para JavaScript (ESNext).
  • Runtime: Node.js com polyfills (readline-sync) para interação síncrona.

Autores: William Gerhard & Antigravity