1

In need of the lexical and the grammar sheet of the Ada programming language spark 2014 can anyone help, please. thanks in advance.

Jacob Sparre Andersen
  • 6,733
  • 17
  • 22
M.Mar
  • 91
  • 1
  • 3

2 Answers2

1

On the AdaCore page about SPARK, the first item under the headline "Resources" is a link to "SPARK 2014 Reference Manual". You might be able to find a formal grammar there, although I'm not too optimistic.

Jacob Sparre Andersen
  • 6,733
  • 17
  • 22
0

There is an Annex, which summarizes the complete syntax of the language.

Ada 22 Draft

Syntax Rules: http://www.ada-auth.org/standards/22rm/html/RM-P-1.html

Syntax Cross Reference: http://www.ada-auth.org/standards/22rm/html/RM-P-2.html

Ada 12 + Technical Corrigendum 1

Syntax Rules: http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-P.html

Ada 12

Syntax Rules: http://www.ada-auth.org/standards/12rm/html/RM-P.html

Antlr Grammars:

Ada Spark 2014

Docs: https://github.com/AdaCore/spark2014/tree/master/docs

Jens A. Koch
  • 39,862
  • 13
  • 113
  • 141