Syntax: optional elements

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Syntax: optional elements

Alejandro Pulver

How can I make some syntax elements optional (that can be there or not)?

For example:

add 5, 7
loop: sub 3, 5
jmp -2

The middle line has an optional label, and the others don't, also the
third line has not a second field.

How can I implement this?

Thanks and Best Regards,