vJASS

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Vexorian JASS, vJass
Provenance: commit d822982ad7 · authored 2026-03-06T09:27:09+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

JASS (0.25)VEX (0.14)Glass (0.14)GRASS (0.14)Verus (0.14)

LLM-contributed programs

Stack Data Structure

Provenance: commit d822982ad7 · authored 2026-03-06T09:27:09+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.j · added: 2026-03-06T10:00:00Z
library StackDemo

    struct Stack
        private integer array data[100]
        private integer size

        static method create takes nothing returns thistype
            local thistype this = thistype.allocate()
            set this.size = 0
            return this
        endmethod

        method push takes integer value returns nothing
            if this.size < 100 then
                set this.data[this.size] = value
                set this.size = this.size + 1
            endif
        endmethod

        method pop takes nothing returns integer
            if this.size > 0 then
                set this.size = this.size - 1
                return this.data[this.size]
            endif
            return 0
        endmethod

        method isEmpty takes nothing returns boolean
            return this.size == 0
        endmethod

        method destroy takes nothing returns nothing
            call this.deallocate()
        endmethod
    endstruct

    function DemoStack takes nothing returns nothing
        local Stack s = Stack.create()
        local integer i = 1
        loop
            exitwhen i > 5
            call s.push(i * 10)
            set i = i + 1
        endloop
        loop
            exitwhen s.isEmpty()
            call BJDebugMsg("Popped: " + I2S(s.pop()))
        endloop
        call s.destroy()
    endfunction

endlibrary

Contribute — propose a file extension

Tell us where to find evidence about vJASS (mapped to pl/vjass). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/vJASS/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Vizh Vlang →