What are the structures of syntax in GO?

devquora
devquora

Posted On: Feb 22, 2018

 

In GO programming language the syntaxes are specified using EBNF (Extended Backus-Naur Form)
  • Production = production name “=” [Expression]
  • Expression = Alternative {“1” Alternative}
  • Alternative = Term {Term}
  • Term = Production name token [“….” token]1 Group 1 Option 1 Repetition
  • Group = “(“Expression”)”
  • Option = “[“Expression”]”
  • Repetition = “{“Expression”}”

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Golang Programming Interview Questions

    What is GO?

    It is an open source programming language makes the programmers build a simple, reliable and efficient software easily...

    Golang Programming Interview Questions

    Explain workspace in GO?

    A code has to be kept inside a workspace GO. A workspace is defined as a directory hierarchy with three directories. pk..

    Golang Programming Interview Questions

    Can you perform testing in GO? Explain how can do it?

    Yes, it has a testing framework which comprises of the go test command and the testing package. In order to write a tes..