You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
801 B
53 lines
801 B
{1}; Enumerate all styles: 0 to 15 except for 11(comment block) which is not yet implemented.
|
|
; This is not a viable source file, it just illustrates the different states in isolation.
|
|
{0}
|
|
{1}; comment=1
|
|
; Comment
|
|
{0}
|
|
{1}; whitespace=0
|
|
{0} {1}; w
|
|
{0}
|
|
{1}; number=2
|
|
{2}11{0}
|
|
|
|
{1}; string=3
|
|
{3}"String"{0}
|
|
|
|
{1}; operator=4
|
|
{4}+{0}
|
|
|
|
{1}; identifier=5
|
|
{5}identifier{0}
|
|
|
|
{1}; CPU instruction=6
|
|
{6}add{0}
|
|
|
|
{1}; math Instruction=7
|
|
{7}fadd{0}
|
|
|
|
{1}; register=8
|
|
{8}ECX{0}
|
|
|
|
{1}; directive=9
|
|
{9}section{0}
|
|
|
|
{1}; directive operand=10
|
|
{10}rel{0}
|
|
|
|
{1}; comment block=11 is for future expansion
|
|
{0}
|
|
{1}; character=12
|
|
{12}'character'{0}
|
|
|
|
{1}; string EOL=13
|
|
{13}"no line end
|
|
{0}
|
|
{1}; extended instruction=14
|
|
{14}movq{0}
|
|
|
|
{1}; comment directive=15
|
|
{0} {9}comment{0} {15}~ A multiple-line
|
|
comment directive~{0}
|
|
|
|
{1};end
|