missing-main

A main file has no `define main`, or `synod run` finds no main file.

compile error, shown by synod check.

A main file is the program of its folder, and it holds exactly one define main. synod run on a folder without a main file reports the same code.

Example

Check this program to see the diagnostic.

# package main

Diagnostic

p/main.synod:1:1: error[missing-main]: main file has no "define main"

Fix

Add the entry.

# package main
use std/sim

define main
  sim.Seed 1