Skip to content

.u file format is too strict #523

Open

Description

@IanTrudel

The .u file format is too strict, making it harder to both generate and hand write assembly code for the Unicon VM. Through various experiments, mostly failures, I eventually managed to write a program that generate a valid .u file but this is tedious. I believe that the compiler should be permissive in terms of tabs versus spaces, the ^L and spacing in general.

procedure main()
   write("Hello, Professor!")
end
version	U12.1.00
uid	hello.u1-1746625644-0
impl	local
global	1
	0,000005,main,0

proc main
	local	0,000000,write
	con	0,010000,17,110,145,154,154,157,054,040,120,162,157,146,145,163,163,157,162,041
	declend
	filen	hello.icn
	line	1
	colm	11
	synt	any
	mark	L1
	var	0
	str	0
	line	2
	colm	9
	synt	any
	invoke	1
	unmark
lab L1
	pnull
	line	3
	colm	1
	synt	any
	pfail
	end

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions