-
Notifications
You must be signed in to change notification settings - Fork 2
/
syntax2.txt
2 lines (1 loc) · 846 Bytes
/
syntax2.txt
1
2
OPERATOR semi{OPERATOR semi{KEYWORD int{|NAME sum{|BRACKET ({KEYWORD int{|NAME n}|BRACKET {{OPERATOR semi{OPERATOR semi{OPERATOR semi{OPERATOR semi{OPERATOR semi{OPERATOR semi{KEYWORD int{|NAME result}|KEYWORD int{|NAME i}}|OPERATOR set{NAME i|VALUE 1}}|OPERATOR set{NAME result|VALUE 0}}|KEYWORD while{|BRACKET ({OPERATOR le{NAME i|NAME n}|BRACKET {{OPERATOR semi{OPERATOR semi{OPERATOR set{NAME result|OPERATOR add{NAME result|NAME i}}|OPERATOR set{NAME i|OPERATOR add{NAME i|VALUE 1}}}|}|}}}}|KEYWORD return{|NAME result}}|}|}}}}|KEYWORD void{|NAME main{|BRACKET ({KEYWORD void|BRACKET {{OPERATOR semi{OPERATOR semi{OPERATOR semi{OPERATOR semi{OPERATOR semi{KEYWORD int{|NAME n}|KEYWORD int{|NAME s}}|OPERATOR set{NAME n|NAME input{|BRACKET (}}}|OPERATOR set{NAME s|NAME sum{|BRACKET ({NAME n|}}}}|NAME output{|BRACKET ({NAME s|}}}|}|}}}}}|}