An Entity of Type: book, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org:8891

In computer science, a lexical grammar is a formal grammar defining the syntax of tokens. The program is written using characters that are defined by the lexical structure of the language used. The character set is equivalent to the alphabet used by any written language. The lexical grammar lays down the rules governing how a character sequence is divided up into subsequences of characters, each part of which represents an individual token. This is frequently defined in terms of regular expressions.

Property Value
dbo:abstract
  • القواعد المعجمية (lexical grammar) في علم الحاسوب، القواعد المعجمية هي القواعد الرسمية التي تحدد بناء الجملة من الرموز. يتم كتابة البرنامج باستخدام الأحرف التي يتم تعريفها من خلال بنية معجم اللغة المستخدمة. مجموعة الأحرف تعادل مجموعة الأحرف الأبجدية المستخدمة بواسطة أي لغة مكتوبة. القواعد النحوية تضع القواعد التي تحكم كيفية تقسيم متسلسلة الأحرف إلى متسلسلات جزئية كل جزء منها يمثل رمزًا فرديًا. يتم تعريف هذا من حيث التعبيرات العادية. على سبيل المثال، تحدد القواعد النحوية للمفردات للعديد من لغات البرمجة أن السلسلة الحرفية تبدأ بعلامة «وتستمر حتى يتم العثور على علامة» مطابقة. أن المعرف هو تسلسل أبجدي رقمي (أحرف وأرقام، وعادة ما يسمح أيضًا بوجود شُرط سفلية، ويمنع الأرقام المبدئية). وأن الاعداد الصحيحة هي سلسلة من الأرقام. لذا في متتابعة الأحرف التالية abc" xyz1 23" الرموز هي سلسلة ومعرف ورقم بالإضافة إلى رموز المسافة البيضاء لأن المسافة البيضاء تنهي تسلسل الاحرف والأرقام والرموز التي تشكل المعرف. وعلاوة على ذلك، يتم تصنيف بعض التسلسلات ككلمات دالة - هذه عموما لها نفس شكل المعرفات (كلمات أبجدية عادةً)، ولكن يتم تصنيفها بشكل منفصل، رسميا لديهم نوع رمزي مختلف. آمثلة: التعبيرات العادية للقواعد المعجمية المشتركة تتبع (على سبيل المثال، c). معرف: *[_A-Za-z_][A-Za-z0-9] المراجع: (ar)
  • In computer science, a lexical grammar is a formal grammar defining the syntax of tokens. The program is written using characters that are defined by the lexical structure of the language used. The character set is equivalent to the alphabet used by any written language. The lexical grammar lays down the rules governing how a character sequence is divided up into subsequences of characters, each part of which represents an individual token. This is frequently defined in terms of regular expressions. For instance, the lexical grammar for many programming languages specifies that a string literal starts with a " character and continues until a matching " is found (escaping makes this more complicated), that an identifier is an alphanumeric sequence (letters and digits, usually also allowing underscores, and disallowing initial digits), and that an integer literal is a sequence of digits. So in the following character sequence "abc" xyz1 23 the tokens are string, identifier and number (plus whitespace tokens) because the space character terminates the sequence of characters forming the identifier. Further, certain sequences are categorized as keywords – these generally have the same form as identifiers (usually alphabetical words), but are categorized separately; formally they have a different token type. (en)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 7949557 (xsd:integer)
dbo:wikiPageLength
  • 2799 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 975854837 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdf:type
rdfs:comment
  • القواعد المعجمية (lexical grammar) في علم الحاسوب، القواعد المعجمية هي القواعد الرسمية التي تحدد بناء الجملة من الرموز. يتم كتابة البرنامج باستخدام الأحرف التي يتم تعريفها من خلال بنية معجم اللغة المستخدمة. مجموعة الأحرف تعادل مجموعة الأحرف الأبجدية المستخدمة بواسطة أي لغة مكتوبة. القواعد النحوية تضع القواعد التي تحكم كيفية تقسيم متسلسلة الأحرف إلى متسلسلات جزئية كل جزء منها يمثل رمزًا فرديًا. يتم تعريف هذا من حيث التعبيرات العادية. آمثلة: التعبيرات العادية للقواعد المعجمية المشتركة تتبع (على سبيل المثال، c). معرف: *[_A-Za-z_][A-Za-z0-9] المراجع: (ar)
  • In computer science, a lexical grammar is a formal grammar defining the syntax of tokens. The program is written using characters that are defined by the lexical structure of the language used. The character set is equivalent to the alphabet used by any written language. The lexical grammar lays down the rules governing how a character sequence is divided up into subsequences of characters, each part of which represents an individual token. This is frequently defined in terms of regular expressions. (en)
rdfs:label
  • القواعد المعجمية (ar)
  • Lexical grammar (en)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License