web

package module
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

README

web

Go-powered new programming language for web development

This is still very early version, so please use only for testing purposes, because it's not production ready yet.

Example

package main

import (
	"context"

	"webimizer.dev/web"
)

func main() {
	vm := web.VM{}
	vm.InitVM(context.Background(), []string{}, "test")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Attributes map[string]interface{}
	Methods    map[string]Function
}

Web class represantation in VM

type Function

type Function struct {
	Args map[string]interface{}
}

Web function representation in VM

type VM

type VM struct {
	// contains filtered or unexported fields
}

Main VM struct

func (*VM) InitVM

func (vm *VM) InitVM(ctx context.Context, args []string, sourceDir string)

Initialize VM with given context and arguments. Please provide correct sourceDir - directory of Web language source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL