Octal and Binary Prefix in [Syntax] section of .syn files

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

How many languages or syntax style do you know that uses this style for numbers?

No one!
0
No votes
Up to 3.
0
No votes
More than 3, Up to 10.
2
100%
More than 10.
0
No votes
 
Total votes: 2

messi
Posts: 2
Joined: Tue Dec 26, 2006 12:34 am
Location: IRAN
Contact:

Octal and Binary Prefix in [Syntax] section of .syn files

Post by messi »

I think it is a good idea to have Octal Prefix and Binary Prefix line in [Syntax] section of Syntax Definition Files (.syn files) like HexPrefix which we have it now.
One of the examples are Verilog and VHDL (Hardware Design & Simulation Language). We have:
8'b10101010 means 8 bits binary 10101010 (equal to 170)
8'o252 means 8 bits binary 252 (equal to 170)
8'haa means 8 bits hex aa (equal to 170)
with the features of 4.7.3 we only can see "8'haa" as a number and "8'b10101010" is not colored as numbers!!!
Post Reply