Problem 96
The syntax diagram below defines the a valid form of an identifier in the Ada programming language.
this-is-a-long-identifier
is a valid identifier. this-ends-in-
, two--hyphens
and 1-digit-at-start
are not.
Write a function to check if a string is a valid Ada identifier.