Ajude a dar forma ao GoConqr. O que a gente deve adicionar?

Flashcards

Semantics and Syntax Key Terms

Amy Dang CSCI 374: Programming Languages college Inglês 16 flashcards

Flashcards do conjunto (16)

  1. 1SyntaxThe form of its expressions, statements, and program units
  2. 2SemanticsThe meaning of the expressions, statements, and program units
  3. 3SentencesThe strings of a language.
    Ex. English: a string of characters form a word, and a string of words form a sentence.
  4. 4LexemesThe lowest-level syntactic units such as its numeric literals, operators, and special words.
  5. 5IdentifiersA group of lexemes
  6. 6TokenThe category of a group of lexemes
  7. 7MetalanguageA language that is used to describe another language.
  8. 8Backus-Naur Form (BNF)A metalanguage for programming languages. It is used to describe the syntax of programming languages.
  9. 9Nonterminal (Symbols)Can have two or more distinct definitions, representing two or more possible syntactic forms in language.
  10. 10Terminal (Symbols)The lexemes or tokens of the rules
  11. 11GrammarA finite nonempty collection of rules
  12. 12RecursionWhen a function calls upon itself.
    A rule is recursive if its LHS appears in its RHS.
    Ex. → identifier
    | identifier,
    appears on both sides.
  13. 13Start SymbolA special nonterminal that begins the grammar.
    Ex.
  14. 14DerivationA repeated application of rules, starting with the start symbol and ending with a sentence (all terminal symbols).
  15. 15AmbiguousA grammar is ambiguous if and only if it generates a sentential form that has two or more distinct parse trees.
  16. 16—

Informações

Descrição
In order to understand any language, we must evaluate the grammar, syntax, and semantics of a language.
Criado por
Amy Dang
Visualizações
53
Tags
semanticssyntaxlexemestokenidentifierssentencesgrammarambiguityassociativityrecursion
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que a gente deve adicionar?