This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/teal/example.teal.output
2022-12-04 19:56:28 +01:00

93 lines
2.1 KiB
Text
Generated

'//example teal code taken from https://developer.algorand.org/tutorials/writing-simple-smart-contract/' Comment.Single
'\n' Text.Whitespace
'// Check the Fee is resonable ' Comment.Single
'\n' Text.Whitespace
'// In this case 10,000 microalgos' Comment.Single
'\n' Text.Whitespace
'txn' Name.Function
' ' Text.Whitespace
'Fee' Keyword
'\n' Text
'int' Name.Function
' ' Text.Whitespace
'10000' Literal.Number.Integer
'\n' Text
'<=' Name.Function
'\n' Text
'\n' Text.Whitespace
'// Check the length of the passphrase is correct ' Comment.Single
'\n' Text.Whitespace
'arg' Name.Function
' ' Text.Whitespace
'0' Literal.Number.Integer
'\n' Text
'len' Name.Function
' ' Text.Whitespace
'\n' Text
'int' Name.Function
' ' Text.Whitespace
'73' Literal.Number.Integer
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text
'\n' Text.Whitespace
'// The sha256 value of the passphrase' Comment.Single
'\n' Text.Whitespace
'arg' Name.Function
' ' Text.Whitespace
'0' Literal.Number.Integer
'\n' Text
'sha256' Name.Function
'\n' Text
'byte' Name.Function
' ' Text.Whitespace
'base64 ' Literal.String.Affix
'30AT2gOReDBdJmLBO/DgvjC6hIXgACecTpFDcP1bJHU=' Literal.String.Other
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text
'\n' Text.Whitespace
'// Make sure the CloseRemainderTo is not set' Comment.Single
'\n' Text.Whitespace
'txn' Name.Function
' ' Text.Whitespace
'CloseRemainderTo' Keyword
'\n' Text
'txn' Name.Function
' ' Text.Whitespace
'Receiver' Keyword
' ' Text.Whitespace
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text