Skip to content

Commit

Permalink
add grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed May 26, 2020
1 parent 1eb2e32 commit a2c47bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions runtime/parser2/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ import (
"github.com/onflow/cadence/runtime/parser2/lexer"
)

// parseTransactionDeclaration parses a transaction declaration.
//
// transactionDeclaration : 'transaction'
// parameterList?
// '{'
// fields
// prepare?
// preConditions?
// ( execute
// | execute postConditions
// | postConditions
// | postConditions execute
// | /* no execute or postConditions */
// )
// '}'
//
func parseTransactionDeclaration(p *parser) *ast.TransactionDeclaration {

startPos := p.current.StartPos
Expand Down

0 comments on commit a2c47bd

Please sign in to comment.