C# Language Specification


Grammar extensions for unsafe code



Download 0,75 Mb.
bet524/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   516   517   518   519   520   521   522   523   524
Bog'liq
CSharp Language Specification

Grammar extensions for unsafe code


class-modifier:
...
unsafe


struct-modifier:
...
unsafe


interface-modifier:
...
unsafe


delegate-modifier:
...
unsafe


field-modifier:
...
unsafe


method-modifier:
...
unsafe


property-modifier:
...
unsafe


event-modifier:
...
unsafe


indexer-modifier:
...
unsafe


operator-modifier:
...
unsafe


constructor-modifier:
...
unsafe


destructor-declaration:
attributesopt externopt unsafeopt ~ identifier ( ) destructor-body
attributesopt unsafeopt externopt ~ identifier ( ) destructor-body


static-constructor-modifiers:
externopt unsafeopt static
unsafeopt externopt static
externopt static unsafeopt
unsafeopt static externopt
static externopt unsafeopt
static unsafeopt externopt


embedded-statement:
...
unsafe-statement
fixed-statement


unsafe-statement:
unsafe block


type:
...
pointer-type


pointer-type:
unmanaged-type *
void *


unmanaged-type:
type


primary-no-array-creation-expression:
...
pointer-member-access
pointer-element-access
sizeof-expression


unary-expression:
...
pointer-indirection-expression
addressof-expression


pointer-indirection-expression:
* unary-expression


pointer-member-access:
primary-expression -> identifier type-argument-listopt


pointer-element-access:
primary-no-array-creation-expression [ expression ]


addressof-expression:
& unary-expression


sizeof-expression:
sizeof ( unmanaged-type )


fixed-statement:
fixed ( pointer-type fixed-pointer-declarators ) embedded-statement


fixed-pointer-declarators:
fixed-pointer-declarator
fixed-pointer-declarators , fixed-pointer-declarator


fixed-pointer-declarator:
identifier = fixed-pointer-initializer


fixed-pointer-initializer:
& variable-reference
expression


struct-member-declaration:

fixed-size-buffer-declaration


fixed-size-buffer-declaration:
attributesopt fixed-size-buffer-modifiersopt fixed buffer-element-type
fixed-size-buffer-declarators ;


fixed-size-buffer-modifiers:
fixed-size-buffer-modifier
fixed-size-buffer-modifier fixed-size-buffer-modifiers


fixed-size-buffer-modifier:
new
public
protected
internal
private
unsafe


buffer-element-type:
type


fixed-size-buffer-declarators:
fixed-size-buffer-declarator
fixed-size-buffer-declarator fixed-size-buffer-declarators


fixed-size-buffer-declarator:
identifier [ constant-expression ]


local-variable-initializer:

stackalloc-initializer


stackalloc-initializer:
stackalloc unmanaged-type [ expression ]

  1. References


Unicode Consortium. The Unicode Standard, Version 3.0. Addison-Wesley, Reading, Massachusetts, 2000, ISBN 0-201-616335-5.

IEEE. IEEE Standard for Binary Floating-Point Arithmetic. ANSI/IEEE Standard 754-1985. Available from http://www.ieee.org.



ISO/IEC. C++. ANSI/ISO/IEC 14882:1998.

Copyright  Microsoft Corporation 1999-2012. All Rights Reserved.
Please send corrections, comments, and other feedback to csharp@microsoft.com


Download 0,75 Mb.

Do'stlaringiz bilan baham:
1   ...   516   517   518   519   520   521   522   523   524




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish