diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/Serpent.g4 b/ethereumj-core/src/main/java/org/ethereum/serpent/Serpent.g4
index 8db6e157..afdfea43 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/Serpent.g4
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/Serpent.g4
@@ -34,7 +34,7 @@ parse: block EOF
parse_init_code_block : 'init' ':' INDENT block DEDENT 'code' ':' INDENT block DEDENT;
block: ( asm | array_assign | assign | contract_storage_assign | special_func | if_elif_else_stmt |
- while_stmt | ret_func_1 | ret_func_2 | suicide_func | stop_func)* ;
+ while_stmt | ret_func_1 | ret_func_2 | suicide_func | stop_func | single_send_fund)* ;
asm: '[asm' asm_symbol 'asm]' NL;
@@ -107,6 +107,7 @@ block_gaslimit
msg_func: 'msg' '(' int_val ',' int_val ',' int_val ',' int_val ',' int_val ')' ;
send_func: 'send' '(' int_val ',' int_val ',' int_val ')';
+single_send_fund: send_func NL;
msg_data: 'msg.data' '[' expression ']' ;
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseListener.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseListener.java
index 24a61e1e..4a4f1edc 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseListener.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseListener.java
@@ -51,32 +51,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitIf_elif_else_stmt(@NotNull SerpentParser.If_elif_else_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterGet_var(@NotNull SerpentParser.Get_varContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitGet_var(@NotNull SerpentParser.Get_varContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterBlock(@NotNull SerpentParser.BlockContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitBlock(@NotNull SerpentParser.BlockContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -116,19 +90,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitContract_storage_assign(@NotNull SerpentParser.Contract_storage_assignContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -142,19 +103,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitBlock_number(@NotNull SerpentParser.Block_numberContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -168,32 +116,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitAdd_expr(@NotNull SerpentParser.Add_exprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -207,19 +129,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitBlock_difficulty(@NotNull SerpentParser.Block_difficultyContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -233,19 +142,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitArray_retreive(@NotNull SerpentParser.Array_retreiveContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -272,19 +168,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitContract_storage_load(@NotNull SerpentParser.Contract_storage_loadContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -311,6 +194,253 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitRel_exp(@NotNull SerpentParser.Rel_expContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterHex_num(@NotNull SerpentParser.Hex_numContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitHex_num(@NotNull SerpentParser.Hex_numContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterCondition(@NotNull SerpentParser.ConditionContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitCondition(@NotNull SerpentParser.ConditionContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSend_func(@NotNull SerpentParser.Send_funcContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSend_func(@NotNull SerpentParser.Send_funcContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterAsm(@NotNull SerpentParser.AsmContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitAsm(@NotNull SerpentParser.AsmContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterGet_var(@NotNull SerpentParser.Get_varContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitGet_var(@NotNull SerpentParser.Get_varContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterBlock(@NotNull SerpentParser.BlockContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitBlock(@NotNull SerpentParser.BlockContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx) { }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void enterEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation does nothing.
+ */
+ @Override public void exitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { }
+
/**
* {@inheritDoc}
*
@@ -350,19 +480,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitSuicide_func(@NotNull SerpentParser.Suicide_funcContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterHex_num(@NotNull SerpentParser.Hex_numContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitHex_num(@NotNull SerpentParser.Hex_numContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -376,32 +493,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitContract_balance(@NotNull SerpentParser.Contract_balanceContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterCondition(@NotNull SerpentParser.ConditionContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitCondition(@NotNull SerpentParser.ConditionContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -446,13 +537,13 @@ public class SerpentBaseListener implements SerpentListener {
*
* The default implementation does nothing.
*/
- @Override public void enterSend_func(@NotNull SerpentParser.Send_funcContext ctx) { }
+ @Override public void enterWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { }
/**
* {@inheritDoc}
*
* The default implementation does nothing.
*/
- @Override public void exitSend_func(@NotNull SerpentParser.Send_funcContext ctx) { }
+ @Override public void exitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { }
/**
* {@inheritDoc}
@@ -467,19 +558,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitArr_def(@NotNull SerpentParser.Arr_defContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -532,32 +610,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitAnd_exp(@NotNull SerpentParser.And_expContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -571,19 +623,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitInt_val(@NotNull SerpentParser.Int_valContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { }
-
/**
* {@inheritDoc}
*
@@ -597,32 +636,6 @@ public class SerpentBaseListener implements SerpentListener {
*/
@Override public void exitRet_func_2(@NotNull SerpentParser.Ret_func_2Context ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void enterAsm(@NotNull SerpentParser.AsmContext ctx) { }
- /**
- * {@inheritDoc}
- *
- * The default implementation does nothing.
- */
- @Override public void exitAsm(@NotNull SerpentParser.AsmContext ctx) { }
-
/**
* {@inheritDoc}
*
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseVisitor.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseVisitor.java
index 81c36c08..448d9254 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseVisitor.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentBaseVisitor.java
@@ -36,22 +36,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitIf_elif_else_stmt(@NotNull SerpentParser.If_elif_else_stmtContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitGet_var(@NotNull SerpentParser.Get_varContext ctx) { return visitChildren(ctx); }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitBlock(@NotNull SerpentParser.BlockContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -76,14 +60,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitContract_storage_assign(@NotNull SerpentParser.Contract_storage_assignContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -92,14 +68,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitBlock_number(@NotNull SerpentParser.Block_numberContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -108,22 +76,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitAdd_expr(@NotNull SerpentParser.Add_exprContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { return visitChildren(ctx); }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -132,14 +84,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitBlock_difficulty(@NotNull SerpentParser.Block_difficultyContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -148,14 +92,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitArray_retreive(@NotNull SerpentParser.Array_retreiveContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -172,14 +108,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitContract_storage_load(@NotNull SerpentParser.Contract_storage_loadContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -196,6 +124,158 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitRel_exp(@NotNull SerpentParser.Rel_expContext ctx) { return visitChildren(ctx); }
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitHex_num(@NotNull SerpentParser.Hex_numContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitCondition(@NotNull SerpentParser.ConditionContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSend_func(@NotNull SerpentParser.Send_funcContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitAsm(@NotNull SerpentParser.AsmContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitGet_var(@NotNull SerpentParser.Get_varContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitBlock(@NotNull SerpentParser.BlockContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitArray_assign(@NotNull SerpentParser.Array_assignContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx) { return visitChildren(ctx); }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default implementation returns the result of calling
+ * {@link #visitChildren} on {@code ctx}.
+ */
+ @Override public T visitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx) { return visitChildren(ctx); }
+
/**
* {@inheritDoc}
*
@@ -220,14 +300,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitSuicide_func(@NotNull SerpentParser.Suicide_funcContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitHex_num(@NotNull SerpentParser.Hex_numContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -236,22 +308,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitContract_balance(@NotNull SerpentParser.Contract_balanceContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitCondition(@NotNull SerpentParser.ConditionContext ctx) { return visitChildren(ctx); }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitEq_exp(@NotNull SerpentParser.Eq_expContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -282,7 +338,7 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
* The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.
*/
- @Override public T visitSend_func(@NotNull SerpentParser.Send_funcContext ctx) { return visitChildren(ctx); }
+ @Override public T visitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
@@ -292,14 +348,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitArr_def(@NotNull SerpentParser.Arr_defContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -332,22 +380,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitAnd_exp(@NotNull SerpentParser.And_expContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx) { return visitChildren(ctx); }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -356,14 +388,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitInt_val(@NotNull SerpentParser.Int_valContext ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
@@ -372,22 +396,6 @@ public class SerpentBaseVisitor extends AbstractParseTreeVisitor implement
*/
@Override public T visitRet_func_2(@NotNull SerpentParser.Ret_func_2Context ctx) { return visitChildren(ctx); }
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx) { return visitChildren(ctx); }
-
- /**
- * {@inheritDoc}
- *
- * The default implementation returns the result of calling
- * {@link #visitChildren} on {@code ctx}.
- */
- @Override public T visitAsm(@NotNull SerpentParser.AsmContext ctx) { return visitChildren(ctx); }
-
/**
* {@inheritDoc}
*
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentListener.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentListener.java
index 3928fd0d..9c10cc7a 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentListener.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentListener.java
@@ -41,28 +41,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitIf_elif_else_stmt(@NotNull SerpentParser.If_elif_else_stmtContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#get_var}.
- * @param ctx the parse tree
- */
- void enterGet_var(@NotNull SerpentParser.Get_varContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#get_var}.
- * @param ctx the parse tree
- */
- void exitGet_var(@NotNull SerpentParser.Get_varContext ctx);
-
- /**
- * Enter a parse tree produced by {@link SerpentParser#block}.
- * @param ctx the parse tree
- */
- void enterBlock(@NotNull SerpentParser.BlockContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#block}.
- * @param ctx the parse tree
- */
- void exitBlock(@NotNull SerpentParser.BlockContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#tx_origin}.
* @param ctx the parse tree
@@ -96,17 +74,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitContract_storage_assign(@NotNull SerpentParser.Contract_storage_assignContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#tx_gas}.
- * @param ctx the parse tree
- */
- void enterTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#tx_gas}.
- * @param ctx the parse tree
- */
- void exitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#block_number}.
* @param ctx the parse tree
@@ -118,17 +85,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitBlock_number(@NotNull SerpentParser.Block_numberContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#in_or_exp}.
- * @param ctx the parse tree
- */
- void enterIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#in_or_exp}.
- * @param ctx the parse tree
- */
- void exitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#add_expr}.
* @param ctx the parse tree
@@ -140,28 +96,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitAdd_expr(@NotNull SerpentParser.Add_exprContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#msg_datasize}.
- * @param ctx the parse tree
- */
- void enterMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#msg_datasize}.
- * @param ctx the parse tree
- */
- void exitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
-
- /**
- * Enter a parse tree produced by {@link SerpentParser#msg_sender}.
- * @param ctx the parse tree
- */
- void enterMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#msg_sender}.
- * @param ctx the parse tree
- */
- void exitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#block_difficulty}.
* @param ctx the parse tree
@@ -173,17 +107,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitBlock_difficulty(@NotNull SerpentParser.Block_difficultyContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#array_assign}.
- * @param ctx the parse tree
- */
- void enterArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#array_assign}.
- * @param ctx the parse tree
- */
- void exitArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#array_retreive}.
* @param ctx the parse tree
@@ -195,17 +118,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitArray_retreive(@NotNull SerpentParser.Array_retreiveContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#parse_init_code_block}.
- * @param ctx the parse tree
- */
- void enterParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#parse_init_code_block}.
- * @param ctx the parse tree
- */
- void exitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#tx_gasprice}.
* @param ctx the parse tree
@@ -228,17 +140,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitContract_storage_load(@NotNull SerpentParser.Contract_storage_loadContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#ex_or_exp}.
- * @param ctx the parse tree
- */
- void enterEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#ex_or_exp}.
- * @param ctx the parse tree
- */
- void exitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#block_gaslimit}.
* @param ctx the parse tree
@@ -261,6 +162,215 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitRel_exp(@NotNull SerpentParser.Rel_expContext ctx);
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#hex_num}.
+ * @param ctx the parse tree
+ */
+ void enterHex_num(@NotNull SerpentParser.Hex_numContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#hex_num}.
+ * @param ctx the parse tree
+ */
+ void exitHex_num(@NotNull SerpentParser.Hex_numContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#eq_exp}.
+ * @param ctx the parse tree
+ */
+ void enterEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#eq_exp}.
+ * @param ctx the parse tree
+ */
+ void exitEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#condition}.
+ * @param ctx the parse tree
+ */
+ void enterCondition(@NotNull SerpentParser.ConditionContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#condition}.
+ * @param ctx the parse tree
+ */
+ void exitCondition(@NotNull SerpentParser.ConditionContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#send_func}.
+ * @param ctx the parse tree
+ */
+ void enterSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#send_func}.
+ * @param ctx the parse tree
+ */
+ void exitSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#block_prevhash}.
+ * @param ctx the parse tree
+ */
+ void enterBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#block_prevhash}.
+ * @param ctx the parse tree
+ */
+ void exitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#mul_expr}.
+ * @param ctx the parse tree
+ */
+ void enterMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#mul_expr}.
+ * @param ctx the parse tree
+ */
+ void exitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#msg_data}.
+ * @param ctx the parse tree
+ */
+ void enterMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#msg_data}.
+ * @param ctx the parse tree
+ */
+ void exitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#asm}.
+ * @param ctx the parse tree
+ */
+ void enterAsm(@NotNull SerpentParser.AsmContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#asm}.
+ * @param ctx the parse tree
+ */
+ void exitAsm(@NotNull SerpentParser.AsmContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#msg_value}.
+ * @param ctx the parse tree
+ */
+ void enterMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#msg_value}.
+ * @param ctx the parse tree
+ */
+ void exitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#get_var}.
+ * @param ctx the parse tree
+ */
+ void enterGet_var(@NotNull SerpentParser.Get_varContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#get_var}.
+ * @param ctx the parse tree
+ */
+ void exitGet_var(@NotNull SerpentParser.Get_varContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#block}.
+ * @param ctx the parse tree
+ */
+ void enterBlock(@NotNull SerpentParser.BlockContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#block}.
+ * @param ctx the parse tree
+ */
+ void exitBlock(@NotNull SerpentParser.BlockContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#tx_gas}.
+ * @param ctx the parse tree
+ */
+ void enterTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#tx_gas}.
+ * @param ctx the parse tree
+ */
+ void exitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#in_or_exp}.
+ * @param ctx the parse tree
+ */
+ void enterIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#in_or_exp}.
+ * @param ctx the parse tree
+ */
+ void exitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#msg_datasize}.
+ * @param ctx the parse tree
+ */
+ void enterMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#msg_datasize}.
+ * @param ctx the parse tree
+ */
+ void exitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#msg_sender}.
+ * @param ctx the parse tree
+ */
+ void enterMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#msg_sender}.
+ * @param ctx the parse tree
+ */
+ void exitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#array_assign}.
+ * @param ctx the parse tree
+ */
+ void enterArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#array_assign}.
+ * @param ctx the parse tree
+ */
+ void exitArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#parse_init_code_block}.
+ * @param ctx the parse tree
+ */
+ void enterParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#parse_init_code_block}.
+ * @param ctx the parse tree
+ */
+ void exitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#single_send_fund}.
+ * @param ctx the parse tree
+ */
+ void enterSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#single_send_fund}.
+ * @param ctx the parse tree
+ */
+ void exitSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx);
+
+ /**
+ * Enter a parse tree produced by {@link SerpentParser#ex_or_exp}.
+ * @param ctx the parse tree
+ */
+ void enterEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
+ /**
+ * Exit a parse tree produced by {@link SerpentParser#ex_or_exp}.
+ * @param ctx the parse tree
+ */
+ void exitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
+
/**
* Enter a parse tree produced by {@link SerpentParser#msg_func}.
* @param ctx the parse tree
@@ -294,17 +404,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitSuicide_func(@NotNull SerpentParser.Suicide_funcContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#hex_num}.
- * @param ctx the parse tree
- */
- void enterHex_num(@NotNull SerpentParser.Hex_numContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#hex_num}.
- * @param ctx the parse tree
- */
- void exitHex_num(@NotNull SerpentParser.Hex_numContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#contract_balance}.
* @param ctx the parse tree
@@ -316,28 +415,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitContract_balance(@NotNull SerpentParser.Contract_balanceContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#condition}.
- * @param ctx the parse tree
- */
- void enterCondition(@NotNull SerpentParser.ConditionContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#condition}.
- * @param ctx the parse tree
- */
- void exitCondition(@NotNull SerpentParser.ConditionContext ctx);
-
- /**
- * Enter a parse tree produced by {@link SerpentParser#eq_exp}.
- * @param ctx the parse tree
- */
- void enterEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#eq_exp}.
- * @param ctx the parse tree
- */
- void exitEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#stop_func}.
* @param ctx the parse tree
@@ -372,15 +449,15 @@ public interface SerpentListener extends ParseTreeListener {
void exitBlock_timestamp(@NotNull SerpentParser.Block_timestampContext ctx);
/**
- * Enter a parse tree produced by {@link SerpentParser#send_func}.
+ * Enter a parse tree produced by {@link SerpentParser#while_stmt}.
* @param ctx the parse tree
*/
- void enterSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+ void enterWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
/**
- * Exit a parse tree produced by {@link SerpentParser#send_func}.
+ * Exit a parse tree produced by {@link SerpentParser#while_stmt}.
* @param ctx the parse tree
*/
- void exitSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+ void exitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
/**
* Enter a parse tree produced by {@link SerpentParser#arr_def}.
@@ -393,17 +470,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitArr_def(@NotNull SerpentParser.Arr_defContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#while_stmt}.
- * @param ctx the parse tree
- */
- void enterWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#while_stmt}.
- * @param ctx the parse tree
- */
- void exitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#special_func}.
* @param ctx the parse tree
@@ -448,28 +514,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitAnd_exp(@NotNull SerpentParser.And_expContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#block_prevhash}.
- * @param ctx the parse tree
- */
- void enterBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#block_prevhash}.
- * @param ctx the parse tree
- */
- void exitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
-
- /**
- * Enter a parse tree produced by {@link SerpentParser#mul_expr}.
- * @param ctx the parse tree
- */
- void enterMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#mul_expr}.
- * @param ctx the parse tree
- */
- void exitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#int_val}.
* @param ctx the parse tree
@@ -481,17 +525,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitInt_val(@NotNull SerpentParser.Int_valContext ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#msg_data}.
- * @param ctx the parse tree
- */
- void enterMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#msg_data}.
- * @param ctx the parse tree
- */
- void exitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#ret_func_2}.
* @param ctx the parse tree
@@ -503,28 +536,6 @@ public interface SerpentListener extends ParseTreeListener {
*/
void exitRet_func_2(@NotNull SerpentParser.Ret_func_2Context ctx);
- /**
- * Enter a parse tree produced by {@link SerpentParser#msg_value}.
- * @param ctx the parse tree
- */
- void enterMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#msg_value}.
- * @param ctx the parse tree
- */
- void exitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
-
- /**
- * Enter a parse tree produced by {@link SerpentParser#asm}.
- * @param ctx the parse tree
- */
- void enterAsm(@NotNull SerpentParser.AsmContext ctx);
- /**
- * Exit a parse tree produced by {@link SerpentParser#asm}.
- * @param ctx the parse tree
- */
- void exitAsm(@NotNull SerpentParser.AsmContext ctx);
-
/**
* Enter a parse tree produced by {@link SerpentParser#ret_func_1}.
* @param ctx the parse tree
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentParser.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentParser.java
index 8215a173..c0defa74 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentParser.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentParser.java
@@ -41,23 +41,25 @@ public class SerpentParser extends Parser {
RULE_tx_gasprice = 11, RULE_tx_origin = 12, RULE_tx_gas = 13, RULE_contract_balance = 14,
RULE_block_prevhash = 15, RULE_block_coinbase = 16, RULE_block_timestamp = 17,
RULE_block_number = 18, RULE_block_difficulty = 19, RULE_block_gaslimit = 20,
- RULE_msg_func = 21, RULE_send_func = 22, RULE_msg_data = 23, RULE_array_assign = 24,
- RULE_array_retreive = 25, RULE_assign = 26, RULE_arr_def = 27, RULE_contract_storage_assign = 28,
- RULE_contract_storage_load = 29, RULE_mul_expr = 30, RULE_add_expr = 31,
- RULE_rel_exp = 32, RULE_eq_exp = 33, RULE_and_exp = 34, RULE_ex_or_exp = 35,
- RULE_in_or_exp = 36, RULE_log_and_exp = 37, RULE_log_or_exp = 38, RULE_expression = 39,
- RULE_condition = 40, RULE_int_val = 41, RULE_hex_num = 42, RULE_ret_func_1 = 43,
- RULE_ret_func_2 = 44, RULE_suicide_func = 45, RULE_stop_func = 46, RULE_get_var = 47;
+ RULE_msg_func = 21, RULE_send_func = 22, RULE_single_send_fund = 23, RULE_msg_data = 24,
+ RULE_array_assign = 25, RULE_array_retreive = 26, RULE_assign = 27, RULE_arr_def = 28,
+ RULE_contract_storage_assign = 29, RULE_contract_storage_load = 30, RULE_mul_expr = 31,
+ RULE_add_expr = 32, RULE_rel_exp = 33, RULE_eq_exp = 34, RULE_and_exp = 35,
+ RULE_ex_or_exp = 36, RULE_in_or_exp = 37, RULE_log_and_exp = 38, RULE_log_or_exp = 39,
+ RULE_expression = 40, RULE_condition = 41, RULE_int_val = 42, RULE_hex_num = 43,
+ RULE_ret_func_1 = 44, RULE_ret_func_2 = 45, RULE_suicide_func = 46, RULE_stop_func = 47,
+ RULE_get_var = 48;
public static final String[] ruleNames = {
"parse", "parse_init_code_block", "block", "asm", "asm_symbol", "if_elif_else_stmt",
"while_stmt", "special_func", "msg_datasize", "msg_sender", "msg_value",
"tx_gasprice", "tx_origin", "tx_gas", "contract_balance", "block_prevhash",
"block_coinbase", "block_timestamp", "block_number", "block_difficulty",
- "block_gaslimit", "msg_func", "send_func", "msg_data", "array_assign",
- "array_retreive", "assign", "arr_def", "contract_storage_assign", "contract_storage_load",
- "mul_expr", "add_expr", "rel_exp", "eq_exp", "and_exp", "ex_or_exp", "in_or_exp",
- "log_and_exp", "log_or_exp", "expression", "condition", "int_val", "hex_num",
- "ret_func_1", "ret_func_2", "suicide_func", "stop_func", "get_var"
+ "block_gaslimit", "msg_func", "send_func", "single_send_fund", "msg_data",
+ "array_assign", "array_retreive", "assign", "arr_def", "contract_storage_assign",
+ "contract_storage_load", "mul_expr", "add_expr", "rel_exp", "eq_exp",
+ "and_exp", "ex_or_exp", "in_or_exp", "log_and_exp", "log_or_exp", "expression",
+ "condition", "int_val", "hex_num", "ret_func_1", "ret_func_2", "suicide_func",
+ "stop_func", "get_var"
};
@Override
@@ -106,8 +108,8 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(96); block();
- setState(97); match(EOF);
+ setState(98); block();
+ setState(99); match(EOF);
}
}
catch (RecognitionException re) {
@@ -161,16 +163,16 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(99); match(16);
- setState(100); match(10);
- setState(101); match(INDENT);
- setState(102); block();
- setState(103); match(DEDENT);
- setState(104); match(34);
- setState(105); match(10);
- setState(106); match(INDENT);
- setState(107); block();
- setState(108); match(DEDENT);
+ setState(101); match(16);
+ setState(102); match(10);
+ setState(103); match(INDENT);
+ setState(104); block();
+ setState(105); match(DEDENT);
+ setState(106); match(34);
+ setState(107); match(10);
+ setState(108); match(INDENT);
+ setState(109); block();
+ setState(110); match(DEDENT);
}
}
catch (RecognitionException re) {
@@ -185,6 +187,12 @@ public class SerpentParser extends Parser {
}
public static class BlockContext extends ParserRuleContext {
+ public Single_send_fundContext single_send_fund(int i) {
+ return getRuleContext(Single_send_fundContext.class,i);
+ }
+ public List single_send_fund() {
+ return getRuleContexts(Single_send_fundContext.class);
+ }
public Array_assignContext array_assign(int i) {
return getRuleContext(Array_assignContext.class,i);
}
@@ -277,81 +285,87 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(123);
+ setState(126);
_errHandler.sync(this);
_la = _input.LA(1);
- while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << 2) | (1L << 3) | (1L << 6) | (1L << 7) | (1L << 11) | (1L << 13) | (1L << 14) | (1L << 15) | (1L << 17) | (1L << 18) | (1L << 19) | (1L << 20) | (1L << 21) | (1L << 23) | (1L << 25) | (1L << 28) | (1L << 29) | (1L << 30) | (1L << 32) | (1L << 33) | (1L << VAR))) != 0)) {
+ while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << 2) | (1L << 3) | (1L << 6) | (1L << 7) | (1L << 11) | (1L << 12) | (1L << 13) | (1L << 14) | (1L << 15) | (1L << 17) | (1L << 18) | (1L << 19) | (1L << 20) | (1L << 21) | (1L << 23) | (1L << 25) | (1L << 28) | (1L << 29) | (1L << 30) | (1L << 32) | (1L << 33) | (1L << VAR))) != 0)) {
{
- setState(121);
+ setState(124);
switch ( getInterpreter().adaptivePredict(_input,0,_ctx) ) {
case 1:
{
- setState(110); asm();
+ setState(112); asm();
}
break;
case 2:
{
- setState(111); array_assign();
+ setState(113); array_assign();
}
break;
case 3:
{
- setState(112); assign();
+ setState(114); assign();
}
break;
case 4:
{
- setState(113); contract_storage_assign();
+ setState(115); contract_storage_assign();
}
break;
case 5:
{
- setState(114); special_func();
+ setState(116); special_func();
}
break;
case 6:
{
- setState(115); if_elif_else_stmt();
+ setState(117); if_elif_else_stmt();
}
break;
case 7:
{
- setState(116); while_stmt();
+ setState(118); while_stmt();
}
break;
case 8:
{
- setState(117); ret_func_1();
+ setState(119); ret_func_1();
}
break;
case 9:
{
- setState(118); ret_func_2();
+ setState(120); ret_func_2();
}
break;
case 10:
{
- setState(119); suicide_func();
+ setState(121); suicide_func();
}
break;
case 11:
{
- setState(120); stop_func();
+ setState(122); stop_func();
+ }
+ break;
+
+ case 12:
+ {
+ setState(123); single_send_fund();
}
break;
}
}
- setState(125);
+ setState(128);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -398,10 +412,10 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(126); match(14);
- setState(127); asm_symbol();
- setState(128); match(31);
- setState(129); match(NL);
+ setState(129); match(14);
+ setState(130); asm_symbol();
+ setState(131); match(31);
+ setState(132); match(NL);
}
}
catch (RecognitionException re) {
@@ -454,13 +468,13 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(134);
+ setState(137);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << INT) | (1L << ASM_SYMBOLS) | (1L << HEX_NUMBER))) != 0)) {
{
{
- setState(131);
+ setState(134);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << INT) | (1L << ASM_SYMBOLS) | (1L << HEX_NUMBER))) != 0)) ) {
_errHandler.recoverInline(this);
@@ -468,7 +482,7 @@ public class SerpentParser extends Parser {
consume();
}
}
- setState(136);
+ setState(139);
_errHandler.sync(this);
_la = _input.LA(1);
}
@@ -532,38 +546,38 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(137); match(11);
- setState(138); condition();
- setState(139); match(10);
- setState(140); match(INDENT);
- setState(141); block();
- setState(142); match(DEDENT);
- setState(152);
+ setState(140); match(11);
+ setState(141); condition();
+ setState(142); match(10);
+ setState(143); match(INDENT);
+ setState(144); block();
+ setState(145); match(DEDENT);
+ setState(155);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==27) {
{
{
- setState(143); match(27);
- setState(144); condition();
- setState(145); match(10);
- setState(146); match(INDENT);
- setState(147); block();
- setState(148); match(DEDENT);
+ setState(146); match(27);
+ setState(147); condition();
+ setState(148); match(10);
+ setState(149); match(INDENT);
+ setState(150); block();
+ setState(151); match(DEDENT);
}
}
- setState(154);
+ setState(157);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(160);
+ setState(163);
_la = _input.LA(1);
if (_la==24) {
{
- setState(155); match(24);
- setState(156); match(INDENT);
- setState(157); block();
- setState(158); match(DEDENT);
+ setState(158); match(24);
+ setState(159); match(INDENT);
+ setState(160); block();
+ setState(161); match(DEDENT);
}
}
@@ -614,12 +628,12 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(162); match(7);
- setState(163); condition();
- setState(164); match(10);
- setState(165); match(INDENT);
- setState(166); block();
- setState(167); match(DEDENT);
+ setState(165); match(7);
+ setState(166); condition();
+ setState(167); match(10);
+ setState(168); match(INDENT);
+ setState(169); block();
+ setState(170); match(DEDENT);
}
}
catch (RecognitionException re) {
@@ -696,84 +710,84 @@ public class SerpentParser extends Parser {
Special_funcContext _localctx = new Special_funcContext(_ctx, getState());
enterRule(_localctx, 14, RULE_special_func);
try {
- setState(182);
+ setState(185);
switch (_input.LA(1)) {
case 21:
enterOuterAlt(_localctx, 1);
{
- setState(169); msg_datasize();
+ setState(172); msg_datasize();
}
break;
case 29:
enterOuterAlt(_localctx, 2);
{
- setState(170); msg_sender();
+ setState(173); msg_sender();
}
break;
case 15:
enterOuterAlt(_localctx, 3);
{
- setState(171); msg_value();
+ setState(174); msg_value();
}
break;
case 23:
enterOuterAlt(_localctx, 4);
{
- setState(172); tx_gasprice();
+ setState(175); tx_gasprice();
}
break;
case 25:
enterOuterAlt(_localctx, 5);
{
- setState(173); tx_origin();
+ setState(176); tx_origin();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
- setState(174); tx_gas();
+ setState(177); tx_gas();
}
break;
case 30:
enterOuterAlt(_localctx, 7);
{
- setState(175); contract_balance();
+ setState(178); contract_balance();
}
break;
case 17:
enterOuterAlt(_localctx, 8);
{
- setState(176); block_prevhash();
+ setState(179); block_prevhash();
}
break;
case 3:
enterOuterAlt(_localctx, 9);
{
- setState(177); block_coinbase();
+ setState(180); block_coinbase();
}
break;
case 13:
enterOuterAlt(_localctx, 10);
{
- setState(178); block_timestamp();
+ setState(181); block_timestamp();
}
break;
case 33:
enterOuterAlt(_localctx, 11);
{
- setState(179); block_number();
+ setState(182); block_number();
}
break;
case 20:
enterOuterAlt(_localctx, 12);
{
- setState(180); block_difficulty();
+ setState(183); block_difficulty();
}
break;
case 32:
enterOuterAlt(_localctx, 13);
{
- setState(181); block_gaslimit();
+ setState(184); block_gaslimit();
}
break;
default:
@@ -817,7 +831,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(184); match(21);
+ setState(187); match(21);
}
}
catch (RecognitionException re) {
@@ -857,7 +871,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(186); match(29);
+ setState(189); match(29);
}
}
catch (RecognitionException re) {
@@ -897,7 +911,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(188); match(15);
+ setState(191); match(15);
}
}
catch (RecognitionException re) {
@@ -937,7 +951,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(190); match(23);
+ setState(193); match(23);
}
}
catch (RecognitionException re) {
@@ -977,7 +991,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(192); match(25);
+ setState(195); match(25);
}
}
catch (RecognitionException re) {
@@ -1017,7 +1031,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(194); match(6);
+ setState(197); match(6);
}
}
catch (RecognitionException re) {
@@ -1057,7 +1071,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(196); match(30);
+ setState(199); match(30);
}
}
catch (RecognitionException re) {
@@ -1097,7 +1111,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(198); match(17);
+ setState(201); match(17);
}
}
catch (RecognitionException re) {
@@ -1137,7 +1151,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(200); match(3);
+ setState(203); match(3);
}
}
catch (RecognitionException re) {
@@ -1177,7 +1191,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(202); match(13);
+ setState(205); match(13);
}
}
catch (RecognitionException re) {
@@ -1217,7 +1231,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(204); match(33);
+ setState(207); match(33);
}
}
catch (RecognitionException re) {
@@ -1257,7 +1271,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(206); match(20);
+ setState(209); match(20);
}
}
catch (RecognitionException re) {
@@ -1297,7 +1311,7 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(208); match(32);
+ setState(211); match(32);
}
}
catch (RecognitionException re) {
@@ -1343,18 +1357,18 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(210); match(5);
- setState(211); match(9);
- setState(212); int_val();
- setState(213); match(4);
- setState(214); int_val();
- setState(215); match(4);
- setState(216); int_val();
- setState(217); match(4);
- setState(218); int_val();
- setState(219); match(4);
- setState(220); int_val();
- setState(221); match(22);
+ setState(213); match(5);
+ setState(214); match(9);
+ setState(215); int_val();
+ setState(216); match(4);
+ setState(217); int_val();
+ setState(218); match(4);
+ setState(219); int_val();
+ setState(220); match(4);
+ setState(221); int_val();
+ setState(222); match(4);
+ setState(223); int_val();
+ setState(224); match(22);
}
}
catch (RecognitionException re) {
@@ -1400,14 +1414,59 @@ public class SerpentParser extends Parser {
try {
enterOuterAlt(_localctx, 1);
{
- setState(223); match(12);
- setState(224); match(9);
- setState(225); int_val();
- setState(226); match(4);
- setState(227); int_val();
- setState(228); match(4);
- setState(229); int_val();
- setState(230); match(22);
+ setState(226); match(12);
+ setState(227); match(9);
+ setState(228); int_val();
+ setState(229); match(4);
+ setState(230); int_val();
+ setState(231); match(4);
+ setState(232); int_val();
+ setState(233); match(22);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public static class Single_send_fundContext extends ParserRuleContext {
+ public TerminalNode NL() { return getToken(SerpentParser.NL, 0); }
+ public Send_funcContext send_func() {
+ return getRuleContext(Send_funcContext.class,0);
+ }
+ public Single_send_fundContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+ @Override public int getRuleIndex() { return RULE_single_send_fund; }
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if ( listener instanceof SerpentListener ) ((SerpentListener)listener).enterSingle_send_fund(this);
+ }
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if ( listener instanceof SerpentListener ) ((SerpentListener)listener).exitSingle_send_fund(this);
+ }
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if ( visitor instanceof SerpentVisitor ) return ((SerpentVisitor extends T>)visitor).visitSingle_send_fund(this);
+ else return visitor.visitChildren(this);
+ }
+ }
+
+ public final Single_send_fundContext single_send_fund() throws RecognitionException {
+ Single_send_fundContext _localctx = new Single_send_fundContext(_ctx, getState());
+ enterRule(_localctx, 46, RULE_single_send_fund);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(235); send_func();
+ setState(236); match(NL);
}
}
catch (RecognitionException re) {
@@ -1446,14 +1505,14 @@ public class SerpentParser extends Parser {
public final Msg_dataContext msg_data() throws RecognitionException {
Msg_dataContext _localctx = new Msg_dataContext(_ctx, getState());
- enterRule(_localctx, 46, RULE_msg_data);
+ enterRule(_localctx, 48, RULE_msg_data);
try {
enterOuterAlt(_localctx, 1);
{
- setState(232); match(26);
- setState(233); match(8);
- setState(234); expression();
- setState(235); match(1);
+ setState(238); match(26);
+ setState(239); match(8);
+ setState(240); expression();
+ setState(241); match(1);
}
}
catch (RecognitionException re) {
@@ -1498,17 +1557,17 @@ public class SerpentParser extends Parser {
public final Array_assignContext array_assign() throws RecognitionException {
Array_assignContext _localctx = new Array_assignContext(_ctx, getState());
- enterRule(_localctx, 48, RULE_array_assign);
+ enterRule(_localctx, 50, RULE_array_assign);
try {
enterOuterAlt(_localctx, 1);
{
- setState(237); match(VAR);
- setState(238); match(8);
- setState(239); int_val();
- setState(240); match(1);
- setState(241); match(EQ_OP);
- setState(242); expression();
- setState(243); match(NL);
+ setState(243); match(VAR);
+ setState(244); match(8);
+ setState(245); int_val();
+ setState(246); match(1);
+ setState(247); match(EQ_OP);
+ setState(248); expression();
+ setState(249); match(NL);
}
}
catch (RecognitionException re) {
@@ -1548,14 +1607,14 @@ public class SerpentParser extends Parser {
public final Array_retreiveContext array_retreive() throws RecognitionException {
Array_retreiveContext _localctx = new Array_retreiveContext(_ctx, getState());
- enterRule(_localctx, 50, RULE_array_retreive);
+ enterRule(_localctx, 52, RULE_array_retreive);
try {
enterOuterAlt(_localctx, 1);
{
- setState(245); match(VAR);
- setState(246); match(8);
- setState(247); int_val();
- setState(248); match(1);
+ setState(251); match(VAR);
+ setState(252); match(8);
+ setState(253); int_val();
+ setState(254); match(1);
}
}
catch (RecognitionException re) {
@@ -1600,13 +1659,13 @@ public class SerpentParser extends Parser {
public final AssignContext assign() throws RecognitionException {
AssignContext _localctx = new AssignContext(_ctx, getState());
- enterRule(_localctx, 52, RULE_assign);
+ enterRule(_localctx, 54, RULE_assign);
try {
enterOuterAlt(_localctx, 1);
{
- setState(250); match(VAR);
- setState(251); match(EQ_OP);
- setState(254);
+ setState(256); match(VAR);
+ setState(257); match(EQ_OP);
+ setState(260);
switch (_input.LA(1)) {
case 3:
case 5:
@@ -1631,18 +1690,18 @@ public class SerpentParser extends Parser {
case VAR:
case HEX_NUMBER:
{
- setState(252); expression();
+ setState(258); expression();
}
break;
case 8:
{
- setState(253); arr_def();
+ setState(259); arr_def();
}
break;
default:
throw new NoViableAltException(this);
}
- setState(256); match(NL);
+ setState(262); match(NL);
}
}
catch (RecognitionException re) {
@@ -1684,34 +1743,34 @@ public class SerpentParser extends Parser {
public final Arr_defContext arr_def() throws RecognitionException {
Arr_defContext _localctx = new Arr_defContext(_ctx, getState());
- enterRule(_localctx, 54, RULE_arr_def);
+ enterRule(_localctx, 56, RULE_arr_def);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
- setState(258); match(8);
- setState(265);
+ setState(264); match(8);
+ setState(271);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << 3) | (1L << 5) | (1L << 6) | (1L << 9) | (1L << 12) | (1L << 13) | (1L << 15) | (1L << 17) | (1L << 18) | (1L << 20) | (1L << 21) | (1L << 23) | (1L << 25) | (1L << 26) | (1L << 29) | (1L << 30) | (1L << 32) | (1L << 33) | (1L << INT) | (1L << OP_NOT) | (1L << VAR) | (1L << HEX_NUMBER))) != 0)) {
{
{
- setState(259); int_val();
- setState(261);
+ setState(265); int_val();
+ setState(267);
_la = _input.LA(1);
if (_la==4) {
{
- setState(260); match(4);
+ setState(266); match(4);
}
}
}
}
- setState(267);
+ setState(273);
_errHandler.sync(this);
_la = _input.LA(1);
}
- setState(268); match(1);
+ setState(274); match(1);
}
}
catch (RecognitionException re) {
@@ -1755,17 +1814,17 @@ public class SerpentParser extends Parser {
public final Contract_storage_assignContext contract_storage_assign() throws RecognitionException {
Contract_storage_assignContext _localctx = new Contract_storage_assignContext(_ctx, getState());
- enterRule(_localctx, 56, RULE_contract_storage_assign);
+ enterRule(_localctx, 58, RULE_contract_storage_assign);
try {
enterOuterAlt(_localctx, 1);
{
- setState(270); match(18);
- setState(271); match(8);
- setState(272); expression();
- setState(273); match(1);
- setState(274); match(EQ_OP);
- setState(275); expression();
- setState(276); match(NL);
+ setState(276); match(18);
+ setState(277); match(8);
+ setState(278); expression();
+ setState(279); match(1);
+ setState(280); match(EQ_OP);
+ setState(281); expression();
+ setState(282); match(NL);
}
}
catch (RecognitionException re) {
@@ -1804,14 +1863,14 @@ public class SerpentParser extends Parser {
public final Contract_storage_loadContext contract_storage_load() throws RecognitionException {
Contract_storage_loadContext _localctx = new Contract_storage_loadContext(_ctx, getState());
- enterRule(_localctx, 58, RULE_contract_storage_load);
+ enterRule(_localctx, 60, RULE_contract_storage_load);
try {
enterOuterAlt(_localctx, 1);
{
- setState(278); match(18);
- setState(279); match(8);
- setState(280); expression();
- setState(281); match(1);
+ setState(284); match(18);
+ setState(285); match(8);
+ setState(286); expression();
+ setState(287); match(1);
}
}
catch (RecognitionException re) {
@@ -1860,17 +1919,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Mul_exprContext _localctx = new Mul_exprContext(_ctx, _parentState, _p);
Mul_exprContext _prevctx = _localctx;
- int _startState = 60;
+ int _startState = 62;
enterRecursionRule(_localctx, RULE_mul_expr);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(284); int_val();
+ setState(290); int_val();
}
_ctx.stop = _input.LT(-1);
- setState(291);
+ setState(297);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -1881,14 +1940,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Mul_exprContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_mul_expr);
- setState(286);
+ setState(292);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(287); match(OP_MUL);
- setState(288); int_val();
+ setState(293); match(OP_MUL);
+ setState(294); int_val();
}
}
}
- setState(293);
+ setState(299);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
}
@@ -1940,17 +1999,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Add_exprContext _localctx = new Add_exprContext(_ctx, _parentState, _p);
Add_exprContext _prevctx = _localctx;
- int _startState = 62;
+ int _startState = 64;
enterRecursionRule(_localctx, RULE_add_expr);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(295); mul_expr(0);
+ setState(301); mul_expr(0);
}
_ctx.stop = _input.LT(-1);
- setState(302);
+ setState(308);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,10,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -1961,14 +2020,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Add_exprContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_add_expr);
- setState(297);
+ setState(303);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(298); match(OP_ADD);
- setState(299); mul_expr(0);
+ setState(304); match(OP_ADD);
+ setState(305); mul_expr(0);
}
}
}
- setState(304);
+ setState(310);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,10,_ctx);
}
@@ -2020,17 +2079,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Rel_expContext _localctx = new Rel_expContext(_ctx, _parentState, _p);
Rel_expContext _prevctx = _localctx;
- int _startState = 64;
+ int _startState = 66;
enterRecursionRule(_localctx, RULE_rel_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(306); add_expr(0);
+ setState(312); add_expr(0);
}
_ctx.stop = _input.LT(-1);
- setState(313);
+ setState(319);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,11,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2041,14 +2100,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Rel_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_rel_exp);
- setState(308);
+ setState(314);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(309); match(OP_REL);
- setState(310); add_expr(0);
+ setState(315); match(OP_REL);
+ setState(316); add_expr(0);
}
}
}
- setState(315);
+ setState(321);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,11,_ctx);
}
@@ -2100,17 +2159,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Eq_expContext _localctx = new Eq_expContext(_ctx, _parentState, _p);
Eq_expContext _prevctx = _localctx;
- int _startState = 66;
+ int _startState = 68;
enterRecursionRule(_localctx, RULE_eq_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(317); rel_exp(0);
+ setState(323); rel_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(324);
+ setState(330);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,12,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2121,14 +2180,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Eq_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_eq_exp);
- setState(319);
+ setState(325);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(320); match(OP_EQ);
- setState(321); rel_exp(0);
+ setState(326); match(OP_EQ);
+ setState(327); rel_exp(0);
}
}
}
- setState(326);
+ setState(332);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,12,_ctx);
}
@@ -2180,17 +2239,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
And_expContext _localctx = new And_expContext(_ctx, _parentState, _p);
And_expContext _prevctx = _localctx;
- int _startState = 68;
+ int _startState = 70;
enterRecursionRule(_localctx, RULE_and_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(328); eq_exp(0);
+ setState(334); eq_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(335);
+ setState(341);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,13,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2201,14 +2260,14 @@ public class SerpentParser extends Parser {
{
_localctx = new And_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_and_exp);
- setState(330);
+ setState(336);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(331); match(OP_AND);
- setState(332); eq_exp(0);
+ setState(337); match(OP_AND);
+ setState(338); eq_exp(0);
}
}
}
- setState(337);
+ setState(343);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,13,_ctx);
}
@@ -2260,17 +2319,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Ex_or_expContext _localctx = new Ex_or_expContext(_ctx, _parentState, _p);
Ex_or_expContext _prevctx = _localctx;
- int _startState = 70;
+ int _startState = 72;
enterRecursionRule(_localctx, RULE_ex_or_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(339); and_exp(0);
+ setState(345); and_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(346);
+ setState(352);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2281,14 +2340,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Ex_or_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_ex_or_exp);
- setState(341);
+ setState(347);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(342); match(OP_EX_OR);
- setState(343); and_exp(0);
+ setState(348); match(OP_EX_OR);
+ setState(349); and_exp(0);
}
}
}
- setState(348);
+ setState(354);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
}
@@ -2340,17 +2399,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
In_or_expContext _localctx = new In_or_expContext(_ctx, _parentState, _p);
In_or_expContext _prevctx = _localctx;
- int _startState = 72;
+ int _startState = 74;
enterRecursionRule(_localctx, RULE_in_or_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(350); ex_or_exp(0);
+ setState(356); ex_or_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(357);
+ setState(363);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,15,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2361,14 +2420,14 @@ public class SerpentParser extends Parser {
{
_localctx = new In_or_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_in_or_exp);
- setState(352);
+ setState(358);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(353); match(OP_IN_OR);
- setState(354); ex_or_exp(0);
+ setState(359); match(OP_IN_OR);
+ setState(360); ex_or_exp(0);
}
}
}
- setState(359);
+ setState(365);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,15,_ctx);
}
@@ -2420,17 +2479,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Log_and_expContext _localctx = new Log_and_expContext(_ctx, _parentState, _p);
Log_and_expContext _prevctx = _localctx;
- int _startState = 74;
+ int _startState = 76;
enterRecursionRule(_localctx, RULE_log_and_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(361); in_or_exp(0);
+ setState(367); in_or_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(368);
+ setState(374);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,16,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2441,14 +2500,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Log_and_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_log_and_exp);
- setState(363);
+ setState(369);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(364); match(OP_LOG_AND);
- setState(365); in_or_exp(0);
+ setState(370); match(OP_LOG_AND);
+ setState(371); in_or_exp(0);
}
}
}
- setState(370);
+ setState(376);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,16,_ctx);
}
@@ -2500,17 +2559,17 @@ public class SerpentParser extends Parser {
int _parentState = getState();
Log_or_expContext _localctx = new Log_or_expContext(_ctx, _parentState, _p);
Log_or_expContext _prevctx = _localctx;
- int _startState = 76;
+ int _startState = 78;
enterRecursionRule(_localctx, RULE_log_or_exp);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
- setState(372); log_and_exp(0);
+ setState(378); log_and_exp(0);
}
_ctx.stop = _input.LT(-1);
- setState(379);
+ setState(385);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,17,_ctx);
while ( _alt!=2 && _alt!=-1 ) {
@@ -2521,14 +2580,14 @@ public class SerpentParser extends Parser {
{
_localctx = new Log_or_expContext(_parentctx, _parentState, _p);
pushNewRecursionContext(_localctx, _startState, RULE_log_or_exp);
- setState(374);
+ setState(380);
if (!(1 >= _localctx._p)) throw new FailedPredicateException(this, "1 >= $_p");
- setState(375); match(OP_LOG_OR);
- setState(376); log_and_exp(0);
+ setState(381); match(OP_LOG_OR);
+ setState(382); log_and_exp(0);
}
}
}
- setState(381);
+ setState(387);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,17,_ctx);
}
@@ -2570,11 +2629,11 @@ public class SerpentParser extends Parser {
public final ExpressionContext expression() throws RecognitionException {
ExpressionContext _localctx = new ExpressionContext(_ctx, getState());
- enterRule(_localctx, 78, RULE_expression);
+ enterRule(_localctx, 80, RULE_expression);
try {
enterOuterAlt(_localctx, 1);
{
- setState(382); log_or_exp(0);
+ setState(388); log_or_exp(0);
}
}
catch (RecognitionException re) {
@@ -2613,11 +2672,11 @@ public class SerpentParser extends Parser {
public final ConditionContext condition() throws RecognitionException {
ConditionContext _localctx = new ConditionContext(_ctx, getState());
- enterRule(_localctx, 80, RULE_condition);
+ enterRule(_localctx, 82, RULE_condition);
try {
enterOuterAlt(_localctx, 1);
{
- setState(384); expression();
+ setState(390); expression();
}
}
catch (RecognitionException re) {
@@ -2682,89 +2741,89 @@ public class SerpentParser extends Parser {
public final Int_valContext int_val() throws RecognitionException {
Int_valContext _localctx = new Int_valContext(_ctx, getState());
- enterRule(_localctx, 82, RULE_int_val);
+ enterRule(_localctx, 84, RULE_int_val);
try {
- setState(404);
+ setState(410);
switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
- setState(386); match(INT);
+ setState(392); match(INT);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
- setState(387); hex_num();
+ setState(393); hex_num();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
- setState(388); get_var();
+ setState(394); get_var();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
- setState(389); special_func();
+ setState(395); special_func();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
- setState(390); match(9);
- setState(391); expression();
- setState(392); match(22);
+ setState(396); match(9);
+ setState(397); expression();
+ setState(398); match(22);
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
- setState(394); match(OP_NOT);
- setState(395); match(9);
- setState(396); expression();
- setState(397); match(22);
+ setState(400); match(OP_NOT);
+ setState(401); match(9);
+ setState(402); expression();
+ setState(403); match(22);
}
break;
case 7:
enterOuterAlt(_localctx, 7);
{
- setState(399); msg_func();
+ setState(405); msg_func();
}
break;
case 8:
enterOuterAlt(_localctx, 8);
{
- setState(400); msg_data();
+ setState(406); msg_data();
}
break;
case 9:
enterOuterAlt(_localctx, 9);
{
- setState(401); send_func();
+ setState(407); send_func();
}
break;
case 10:
enterOuterAlt(_localctx, 10);
{
- setState(402); contract_storage_load();
+ setState(408); contract_storage_load();
}
break;
case 11:
enterOuterAlt(_localctx, 11);
{
- setState(403); array_retreive();
+ setState(409); array_retreive();
}
break;
}
@@ -2803,11 +2862,11 @@ public class SerpentParser extends Parser {
public final Hex_numContext hex_num() throws RecognitionException {
Hex_numContext _localctx = new Hex_numContext(_ctx, getState());
- enterRule(_localctx, 84, RULE_hex_num);
+ enterRule(_localctx, 86, RULE_hex_num);
try {
enterOuterAlt(_localctx, 1);
{
- setState(406); match(HEX_NUMBER);
+ setState(412); match(HEX_NUMBER);
}
}
catch (RecognitionException re) {
@@ -2847,15 +2906,15 @@ public class SerpentParser extends Parser {
public final Ret_func_1Context ret_func_1() throws RecognitionException {
Ret_func_1Context _localctx = new Ret_func_1Context(_ctx, getState());
- enterRule(_localctx, 86, RULE_ret_func_1);
+ enterRule(_localctx, 88, RULE_ret_func_1);
try {
enterOuterAlt(_localctx, 1);
{
- setState(408); match(28);
- setState(409); match(9);
- setState(410); expression();
- setState(411); match(22);
- setState(412); match(NL);
+ setState(414); match(28);
+ setState(415); match(9);
+ setState(416); expression();
+ setState(417); match(22);
+ setState(418); match(NL);
}
}
catch (RecognitionException re) {
@@ -2898,17 +2957,17 @@ public class SerpentParser extends Parser {
public final Ret_func_2Context ret_func_2() throws RecognitionException {
Ret_func_2Context _localctx = new Ret_func_2Context(_ctx, getState());
- enterRule(_localctx, 88, RULE_ret_func_2);
+ enterRule(_localctx, 90, RULE_ret_func_2);
try {
enterOuterAlt(_localctx, 1);
{
- setState(414); match(28);
- setState(415); match(9);
- setState(416); expression();
- setState(417); match(4);
- setState(418); expression();
- setState(419); match(22);
- setState(420); match(NL);
+ setState(420); match(28);
+ setState(421); match(9);
+ setState(422); expression();
+ setState(423); match(4);
+ setState(424); expression();
+ setState(425); match(22);
+ setState(426); match(NL);
}
}
catch (RecognitionException re) {
@@ -2948,15 +3007,15 @@ public class SerpentParser extends Parser {
public final Suicide_funcContext suicide_func() throws RecognitionException {
Suicide_funcContext _localctx = new Suicide_funcContext(_ctx, getState());
- enterRule(_localctx, 90, RULE_suicide_func);
+ enterRule(_localctx, 92, RULE_suicide_func);
try {
enterOuterAlt(_localctx, 1);
{
- setState(422); match(19);
- setState(423); match(9);
- setState(424); expression();
- setState(425); match(22);
- setState(426); match(NL);
+ setState(428); match(19);
+ setState(429); match(9);
+ setState(430); expression();
+ setState(431); match(22);
+ setState(432); match(NL);
}
}
catch (RecognitionException re) {
@@ -2993,12 +3052,12 @@ public class SerpentParser extends Parser {
public final Stop_funcContext stop_func() throws RecognitionException {
Stop_funcContext _localctx = new Stop_funcContext(_ctx, getState());
- enterRule(_localctx, 92, RULE_stop_func);
+ enterRule(_localctx, 94, RULE_stop_func);
try {
enterOuterAlt(_localctx, 1);
{
- setState(428); match(2);
- setState(429); match(NL);
+ setState(434); match(2);
+ setState(435); match(NL);
}
}
catch (RecognitionException re) {
@@ -3035,11 +3094,11 @@ public class SerpentParser extends Parser {
public final Get_varContext get_var() throws RecognitionException {
Get_varContext _localctx = new Get_varContext(_ctx, getState());
- enterRule(_localctx, 94, RULE_get_var);
+ enterRule(_localctx, 96, RULE_get_var);
try {
enterOuterAlt(_localctx, 1);
{
- setState(431); match(VAR);
+ setState(437); match(VAR);
}
}
catch (RecognitionException re) {
@@ -3055,23 +3114,23 @@ public class SerpentParser extends Parser {
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
- case 30: return mul_expr_sempred((Mul_exprContext)_localctx, predIndex);
+ case 31: return mul_expr_sempred((Mul_exprContext)_localctx, predIndex);
- case 31: return add_expr_sempred((Add_exprContext)_localctx, predIndex);
+ case 32: return add_expr_sempred((Add_exprContext)_localctx, predIndex);
- case 32: return rel_exp_sempred((Rel_expContext)_localctx, predIndex);
+ case 33: return rel_exp_sempred((Rel_expContext)_localctx, predIndex);
- case 33: return eq_exp_sempred((Eq_expContext)_localctx, predIndex);
+ case 34: return eq_exp_sempred((Eq_expContext)_localctx, predIndex);
- case 34: return and_exp_sempred((And_expContext)_localctx, predIndex);
+ case 35: return and_exp_sempred((And_expContext)_localctx, predIndex);
- case 35: return ex_or_exp_sempred((Ex_or_expContext)_localctx, predIndex);
+ case 36: return ex_or_exp_sempred((Ex_or_expContext)_localctx, predIndex);
- case 36: return in_or_exp_sempred((In_or_expContext)_localctx, predIndex);
+ case 37: return in_or_exp_sempred((In_or_expContext)_localctx, predIndex);
- case 37: return log_and_exp_sempred((Log_and_expContext)_localctx, predIndex);
+ case 38: return log_and_exp_sempred((Log_and_expContext)_localctx, predIndex);
- case 38: return log_or_exp_sempred((Log_or_expContext)_localctx, predIndex);
+ case 39: return log_or_exp_sempred((Log_or_expContext)_localctx, predIndex);
}
return true;
}
@@ -3131,148 +3190,151 @@ public class SerpentParser extends Parser {
}
public static final String _serializedATN =
- "\3\uacf5\uee8c\u4f5d\u8b0d\u4a45\u78bd\u1b2f\u3378\39\u01b4\4\2\t\2\4"+
+ "\3\uacf5\uee8c\u4f5d\u8b0d\u4a45\u78bd\u1b2f\u3378\39\u01ba\4\2\t\2\4"+
"\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+
"\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
- ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\3\2\3\2\3\2\3\3\3\3\3\3\3\3"+
- "\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3"+
- "\4\7\4|\n\4\f\4\16\4\177\13\4\3\5\3\5\3\5\3\5\3\5\3\6\7\6\u0087\n\6\f"+
- "\6\16\6\u008a\13\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7"+
- "\7\7\u0099\n\7\f\7\16\7\u009c\13\7\3\7\3\7\3\7\3\7\3\7\5\7\u00a3\n\7\3"+
- "\b\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t"+
- "\3\t\3\t\5\t\u00b9\n\t\3\n\3\n\3\13\3\13\3\f\3\f\3\r\3\r\3\16\3\16\3\17"+
- "\3\17\3\20\3\20\3\21\3\21\3\22\3\22\3\23\3\23\3\24\3\24\3\25\3\25\3\26"+
- "\3\26\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27"+
- "\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\31\3\31\3\31\3\31\3\31"+
- "\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\33\3\33\3\33\3\33\3\33\3\34"+
- "\3\34\3\34\3\34\5\34\u0101\n\34\3\34\3\34\3\35\3\35\3\35\5\35\u0108\n"+
- "\35\7\35\u010a\n\35\f\35\16\35\u010d\13\35\3\35\3\35\3\36\3\36\3\36\3"+
- "\36\3\36\3\36\3\36\3\36\3\37\3\37\3\37\3\37\3\37\3 \3 \3 \3 \3 \3 \7 "+
- "\u0124\n \f \16 \u0127\13 \3!\3!\3!\3!\3!\3!\7!\u012f\n!\f!\16!\u0132"+
- "\13!\3\"\3\"\3\"\3\"\3\"\3\"\7\"\u013a\n\"\f\"\16\"\u013d\13\"\3#\3#\3"+
- "#\3#\3#\3#\7#\u0145\n#\f#\16#\u0148\13#\3$\3$\3$\3$\3$\3$\7$\u0150\n$"+
- "\f$\16$\u0153\13$\3%\3%\3%\3%\3%\3%\7%\u015b\n%\f%\16%\u015e\13%\3&\3"+
- "&\3&\3&\3&\3&\7&\u0166\n&\f&\16&\u0169\13&\3\'\3\'\3\'\3\'\3\'\3\'\7\'"+
- "\u0171\n\'\f\'\16\'\u0174\13\'\3(\3(\3(\3(\3(\3(\7(\u017c\n(\f(\16(\u017f"+
- "\13(\3)\3)\3*\3*\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3+\3"+
- "+\5+\u0197\n+\3,\3,\3-\3-\3-\3-\3-\3-\3.\3.\3.\3.\3.\3.\3.\3.\3/\3/\3"+
- "/\3/\3/\3/\3\60\3\60\3\60\3\61\3\61\3\61\2\62\2\4\6\b\n\f\16\20\22\24"+
- "\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVXZ\\^`\2\3\4\2%&\67"+
- "\67\u01b3\2b\3\2\2\2\4e\3\2\2\2\6}\3\2\2\2\b\u0080\3\2\2\2\n\u0088\3\2"+
- "\2\2\f\u008b\3\2\2\2\16\u00a4\3\2\2\2\20\u00b8\3\2\2\2\22\u00ba\3\2\2"+
- "\2\24\u00bc\3\2\2\2\26\u00be\3\2\2\2\30\u00c0\3\2\2\2\32\u00c2\3\2\2\2"+
- "\34\u00c4\3\2\2\2\36\u00c6\3\2\2\2 \u00c8\3\2\2\2\"\u00ca\3\2\2\2$\u00cc"+
- "\3\2\2\2&\u00ce\3\2\2\2(\u00d0\3\2\2\2*\u00d2\3\2\2\2,\u00d4\3\2\2\2."+
- "\u00e1\3\2\2\2\60\u00ea\3\2\2\2\62\u00ef\3\2\2\2\64\u00f7\3\2\2\2\66\u00fc"+
- "\3\2\2\28\u0104\3\2\2\2:\u0110\3\2\2\2<\u0118\3\2\2\2>\u011d\3\2\2\2@"+
- "\u0128\3\2\2\2B\u0133\3\2\2\2D\u013e\3\2\2\2F\u0149\3\2\2\2H\u0154\3\2"+
- "\2\2J\u015f\3\2\2\2L\u016a\3\2\2\2N\u0175\3\2\2\2P\u0180\3\2\2\2R\u0182"+
- "\3\2\2\2T\u0196\3\2\2\2V\u0198\3\2\2\2X\u019a\3\2\2\2Z\u01a0\3\2\2\2\\"+
- "\u01a8\3\2\2\2^\u01ae\3\2\2\2`\u01b1\3\2\2\2bc\5\6\4\2cd\7\2\2\3d\3\3"+
- "\2\2\2ef\7\22\2\2fg\7\f\2\2gh\78\2\2hi\5\6\4\2ij\79\2\2jk\7$\2\2kl\7\f"+
- "\2\2lm\78\2\2mn\5\6\4\2no\79\2\2o\5\3\2\2\2p|\5\b\5\2q|\5\62\32\2r|\5"+
- "\66\34\2s|\5:\36\2t|\5\20\t\2u|\5\f\7\2v|\5\16\b\2w|\5X-\2x|\5Z.\2y|\5"+
- "\\/\2z|\5^\60\2{p\3\2\2\2{q\3\2\2\2{r\3\2\2\2{s\3\2\2\2{t\3\2\2\2{u\3"+
- "\2\2\2{v\3\2\2\2{w\3\2\2\2{x\3\2\2\2{y\3\2\2\2{z\3\2\2\2|\177\3\2\2\2"+
- "}{\3\2\2\2}~\3\2\2\2~\7\3\2\2\2\177}\3\2\2\2\u0080\u0081\7\20\2\2\u0081"+
- "\u0082\5\n\6\2\u0082\u0083\7!\2\2\u0083\u0084\7,\2\2\u0084\t\3\2\2\2\u0085"+
- "\u0087\t\2\2\2\u0086\u0085\3\2\2\2\u0087\u008a\3\2\2\2\u0088\u0086\3\2"+
- "\2\2\u0088\u0089\3\2\2\2\u0089\13\3\2\2\2\u008a\u0088\3\2\2\2\u008b\u008c"+
- "\7\r\2\2\u008c\u008d\5R*\2\u008d\u008e\7\f\2\2\u008e\u008f\78\2\2\u008f"+
- "\u0090\5\6\4\2\u0090\u009a\79\2\2\u0091\u0092\7\35\2\2\u0092\u0093\5R"+
- "*\2\u0093\u0094\7\f\2\2\u0094\u0095\78\2\2\u0095\u0096\5\6\4\2\u0096\u0097"+
- "\79\2\2\u0097\u0099\3\2\2\2\u0098\u0091\3\2\2\2\u0099\u009c\3\2\2\2\u009a"+
- "\u0098\3\2\2\2\u009a\u009b\3\2\2\2\u009b\u00a2\3\2\2\2\u009c\u009a\3\2"+
- "\2\2\u009d\u009e\7\32\2\2\u009e\u009f\78\2\2\u009f\u00a0\5\6\4\2\u00a0"+
- "\u00a1\79\2\2\u00a1\u00a3\3\2\2\2\u00a2\u009d\3\2\2\2\u00a2\u00a3\3\2"+
- "\2\2\u00a3\r\3\2\2\2\u00a4\u00a5\7\t\2\2\u00a5\u00a6\5R*\2\u00a6\u00a7"+
- "\7\f\2\2\u00a7\u00a8\78\2\2\u00a8\u00a9\5\6\4\2\u00a9\u00aa\79\2\2\u00aa"+
- "\17\3\2\2\2\u00ab\u00b9\5\22\n\2\u00ac\u00b9\5\24\13\2\u00ad\u00b9\5\26"+
- "\f\2\u00ae\u00b9\5\30\r\2\u00af\u00b9\5\32\16\2\u00b0\u00b9\5\34\17\2"+
- "\u00b1\u00b9\5\36\20\2\u00b2\u00b9\5 \21\2\u00b3\u00b9\5\"\22\2\u00b4"+
- "\u00b9\5$\23\2\u00b5\u00b9\5&\24\2\u00b6\u00b9\5(\25\2\u00b7\u00b9\5*"+
- "\26\2\u00b8\u00ab\3\2\2\2\u00b8\u00ac\3\2\2\2\u00b8\u00ad\3\2\2\2\u00b8"+
- "\u00ae\3\2\2\2\u00b8\u00af\3\2\2\2\u00b8\u00b0\3\2\2\2\u00b8\u00b1\3\2"+
- "\2\2\u00b8\u00b2\3\2\2\2\u00b8\u00b3\3\2\2\2\u00b8\u00b4\3\2\2\2\u00b8"+
- "\u00b5\3\2\2\2\u00b8\u00b6\3\2\2\2\u00b8\u00b7\3\2\2\2\u00b9\21\3\2\2"+
- "\2\u00ba\u00bb\7\27\2\2\u00bb\23\3\2\2\2\u00bc\u00bd\7\37\2\2\u00bd\25"+
- "\3\2\2\2\u00be\u00bf\7\21\2\2\u00bf\27\3\2\2\2\u00c0\u00c1\7\31\2\2\u00c1"+
- "\31\3\2\2\2\u00c2\u00c3\7\33\2\2\u00c3\33\3\2\2\2\u00c4\u00c5\7\b\2\2"+
- "\u00c5\35\3\2\2\2\u00c6\u00c7\7 \2\2\u00c7\37\3\2\2\2\u00c8\u00c9\7\23"+
- "\2\2\u00c9!\3\2\2\2\u00ca\u00cb\7\5\2\2\u00cb#\3\2\2\2\u00cc\u00cd\7\17"+
- "\2\2\u00cd%\3\2\2\2\u00ce\u00cf\7#\2\2\u00cf\'\3\2\2\2\u00d0\u00d1\7\26"+
- "\2\2\u00d1)\3\2\2\2\u00d2\u00d3\7\"\2\2\u00d3+\3\2\2\2\u00d4\u00d5\7\7"+
- "\2\2\u00d5\u00d6\7\13\2\2\u00d6\u00d7\5T+\2\u00d7\u00d8\7\6\2\2\u00d8"+
- "\u00d9\5T+\2\u00d9\u00da\7\6\2\2\u00da\u00db\5T+\2\u00db\u00dc\7\6\2\2"+
- "\u00dc\u00dd\5T+\2\u00dd\u00de\7\6\2\2\u00de\u00df\5T+\2\u00df\u00e0\7"+
- "\30\2\2\u00e0-\3\2\2\2\u00e1\u00e2\7\16\2\2\u00e2\u00e3\7\13\2\2\u00e3"+
- "\u00e4\5T+\2\u00e4\u00e5\7\6\2\2\u00e5\u00e6\5T+\2\u00e6\u00e7\7\6\2\2"+
- "\u00e7\u00e8\5T+\2\u00e8\u00e9\7\30\2\2\u00e9/\3\2\2\2\u00ea\u00eb\7\34"+
- "\2\2\u00eb\u00ec\7\n\2\2\u00ec\u00ed\5P)\2\u00ed\u00ee\7\3\2\2\u00ee\61"+
- "\3\2\2\2\u00ef\u00f0\7/\2\2\u00f0\u00f1\7\n\2\2\u00f1\u00f2\5T+\2\u00f2"+
- "\u00f3\7\3\2\2\u00f3\u00f4\7+\2\2\u00f4\u00f5\5P)\2\u00f5\u00f6\7,\2\2"+
- "\u00f6\63\3\2\2\2\u00f7\u00f8\7/\2\2\u00f8\u00f9\7\n\2\2\u00f9\u00fa\5"+
- "T+\2\u00fa\u00fb\7\3\2\2\u00fb\65\3\2\2\2\u00fc\u00fd\7/\2\2\u00fd\u0100"+
- "\7+\2\2\u00fe\u0101\5P)\2\u00ff\u0101\58\35\2\u0100\u00fe\3\2\2\2\u0100"+
- "\u00ff\3\2\2\2\u0101\u0102\3\2\2\2\u0102\u0103\7,\2\2\u0103\67\3\2\2\2"+
- "\u0104\u010b\7\n\2\2\u0105\u0107\5T+\2\u0106\u0108\7\6\2\2\u0107\u0106"+
- "\3\2\2\2\u0107\u0108\3\2\2\2\u0108\u010a\3\2\2\2\u0109\u0105\3\2\2\2\u010a"+
- "\u010d\3\2\2\2\u010b\u0109\3\2\2\2\u010b\u010c\3\2\2\2\u010c\u010e\3\2"+
- "\2\2\u010d\u010b\3\2\2\2\u010e\u010f\7\3\2\2\u010f9\3\2\2\2\u0110\u0111"+
- "\7\24\2\2\u0111\u0112\7\n\2\2\u0112\u0113\5P)\2\u0113\u0114\7\3\2\2\u0114"+
- "\u0115\7+\2\2\u0115\u0116\5P)\2\u0116\u0117\7,\2\2\u0117;\3\2\2\2\u0118"+
- "\u0119\7\24\2\2\u0119\u011a\7\n\2\2\u011a\u011b\5P)\2\u011b\u011c\7\3"+
- "\2\2\u011c=\3\2\2\2\u011d\u011e\b \1\2\u011e\u011f\5T+\2\u011f\u0125\3"+
- "\2\2\2\u0120\u0121\6 \2\3\u0121\u0122\7\61\2\2\u0122\u0124\5T+\2\u0123"+
- "\u0120\3\2\2\2\u0124\u0127\3\2\2\2\u0125\u0123\3\2\2\2\u0125\u0126\3\2"+
- "\2\2\u0126?\3\2\2\2\u0127\u0125\3\2\2\2\u0128\u0129\b!\1\2\u0129\u012a"+
- "\5> \2\u012a\u0130\3\2\2\2\u012b\u012c\6!\3\3\u012c\u012d\7\60\2\2\u012d"+
- "\u012f\5> \2\u012e\u012b\3\2\2\2\u012f\u0132\3\2\2\2\u0130\u012e\3\2\2"+
- "\2\u0130\u0131\3\2\2\2\u0131A\3\2\2\2\u0132\u0130\3\2\2\2\u0133\u0134"+
- "\b\"\1\2\u0134\u0135\5@!\2\u0135\u013b\3\2\2\2\u0136\u0137\6\"\4\3\u0137"+
- "\u0138\7\62\2\2\u0138\u013a\5@!\2\u0139\u0136\3\2\2\2\u013a\u013d\3\2"+
- "\2\2\u013b\u0139\3\2\2\2\u013b\u013c\3\2\2\2\u013cC\3\2\2\2\u013d\u013b"+
- "\3\2\2\2\u013e\u013f\b#\1\2\u013f\u0140\5B\"\2\u0140\u0146\3\2\2\2\u0141"+
- "\u0142\6#\5\3\u0142\u0143\7\63\2\2\u0143\u0145\5B\"\2\u0144\u0141\3\2"+
- "\2\2\u0145\u0148\3\2\2\2\u0146\u0144\3\2\2\2\u0146\u0147\3\2\2\2\u0147"+
- "E\3\2\2\2\u0148\u0146\3\2\2\2\u0149\u014a\b$\1\2\u014a\u014b\5D#\2\u014b"+
- "\u0151\3\2\2\2\u014c\u014d\6$\6\3\u014d\u014e\7\64\2\2\u014e\u0150\5D"+
- "#\2\u014f\u014c\3\2\2\2\u0150\u0153\3\2\2\2\u0151\u014f\3\2\2\2\u0151"+
- "\u0152\3\2\2\2\u0152G\3\2\2\2\u0153\u0151\3\2\2\2\u0154\u0155\b%\1\2\u0155"+
- "\u0156\5F$\2\u0156\u015c\3\2\2\2\u0157\u0158\6%\7\3\u0158\u0159\7\'\2"+
- "\2\u0159\u015b\5F$\2\u015a\u0157\3\2\2\2\u015b\u015e\3\2\2\2\u015c\u015a"+
- "\3\2\2\2\u015c\u015d\3\2\2\2\u015dI\3\2\2\2\u015e\u015c\3\2\2\2\u015f"+
- "\u0160\b&\1\2\u0160\u0161\5H%\2\u0161\u0167\3\2\2\2\u0162\u0163\6&\b\3"+
- "\u0163\u0164\7\65\2\2\u0164\u0166\5H%\2\u0165\u0162\3\2\2\2\u0166\u0169"+
- "\3\2\2\2\u0167\u0165\3\2\2\2\u0167\u0168\3\2\2\2\u0168K\3\2\2\2\u0169"+
- "\u0167\3\2\2\2\u016a\u016b\b\'\1\2\u016b\u016c\5J&\2\u016c\u0172\3\2\2"+
- "\2\u016d\u016e\6\'\t\3\u016e\u016f\7(\2\2\u016f\u0171\5J&\2\u0170\u016d"+
- "\3\2\2\2\u0171\u0174\3\2\2\2\u0172\u0170\3\2\2\2\u0172\u0173\3\2\2\2\u0173"+
- "M\3\2\2\2\u0174\u0172\3\2\2\2\u0175\u0176\b(\1\2\u0176\u0177\5L\'\2\u0177"+
- "\u017d\3\2\2\2\u0178\u0179\6(\n\3\u0179\u017a\7)\2\2\u017a\u017c\5L\'"+
- "\2\u017b\u0178\3\2\2\2\u017c\u017f\3\2\2\2\u017d\u017b\3\2\2\2\u017d\u017e"+
- "\3\2\2\2\u017eO\3\2\2\2\u017f\u017d\3\2\2\2\u0180\u0181\5N(\2\u0181Q\3"+
- "\2\2\2\u0182\u0183\5P)\2\u0183S\3\2\2\2\u0184\u0197\7%\2\2\u0185\u0197"+
- "\5V,\2\u0186\u0197\5`\61\2\u0187\u0197\5\20\t\2\u0188\u0189\7\13\2\2\u0189"+
- "\u018a\5P)\2\u018a\u018b\7\30\2\2\u018b\u0197\3\2\2\2\u018c\u018d\7*\2"+
- "\2\u018d\u018e\7\13\2\2\u018e\u018f\5P)\2\u018f\u0190\7\30\2\2\u0190\u0197"+
- "\3\2\2\2\u0191\u0197\5,\27\2\u0192\u0197\5\60\31\2\u0193\u0197\5.\30\2"+
- "\u0194\u0197\5<\37\2\u0195\u0197\5\64\33\2\u0196\u0184\3\2\2\2\u0196\u0185"+
- "\3\2\2\2\u0196\u0186\3\2\2\2\u0196\u0187\3\2\2\2\u0196\u0188\3\2\2\2\u0196"+
- "\u018c\3\2\2\2\u0196\u0191\3\2\2\2\u0196\u0192\3\2\2\2\u0196\u0193\3\2"+
- "\2\2\u0196\u0194\3\2\2\2\u0196\u0195\3\2\2\2\u0197U\3\2\2\2\u0198\u0199"+
- "\7\67\2\2\u0199W\3\2\2\2\u019a\u019b\7\36\2\2\u019b\u019c\7\13\2\2\u019c"+
- "\u019d\5P)\2\u019d\u019e\7\30\2\2\u019e\u019f\7,\2\2\u019fY\3\2\2\2\u01a0"+
- "\u01a1\7\36\2\2\u01a1\u01a2\7\13\2\2\u01a2\u01a3\5P)\2\u01a3\u01a4\7\6"+
- "\2\2\u01a4\u01a5\5P)\2\u01a5\u01a6\7\30\2\2\u01a6\u01a7\7,\2\2\u01a7["+
- "\3\2\2\2\u01a8\u01a9\7\25\2\2\u01a9\u01aa\7\13\2\2\u01aa\u01ab\5P)\2\u01ab"+
- "\u01ac\7\30\2\2\u01ac\u01ad\7,\2\2\u01ad]\3\2\2\2\u01ae\u01af\7\4\2\2"+
- "\u01af\u01b0\7,\2\2\u01b0_\3\2\2\2\u01b1\u01b2\7/\2\2\u01b2a\3\2\2\2\25"+
- "{}\u0088\u009a\u00a2\u00b8\u0100\u0107\u010b\u0125\u0130\u013b\u0146\u0151"+
- "\u015c\u0167\u0172\u017d\u0196";
+ ",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\3\2\3\2\3\2\3\3\3"+
+ "\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\4\3\4\3\4\3\4"+
+ "\3\4\3\4\3\4\3\4\7\4\177\n\4\f\4\16\4\u0082\13\4\3\5\3\5\3\5\3\5\3\5\3"+
+ "\6\7\6\u008a\n\6\f\6\16\6\u008d\13\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3"+
+ "\7\3\7\3\7\3\7\3\7\7\7\u009c\n\7\f\7\16\7\u009f\13\7\3\7\3\7\3\7\3\7\3"+
+ "\7\5\7\u00a6\n\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3"+
+ "\t\3\t\3\t\3\t\3\t\3\t\3\t\5\t\u00bc\n\t\3\n\3\n\3\13\3\13\3\f\3\f\3\r"+
+ "\3\r\3\16\3\16\3\17\3\17\3\20\3\20\3\21\3\21\3\22\3\22\3\23\3\23\3\24"+
+ "\3\24\3\25\3\25\3\26\3\26\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27"+
+ "\3\27\3\27\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\31"+
+ "\3\31\3\31\3\32\3\32\3\32\3\32\3\32\3\33\3\33\3\33\3\33\3\33\3\33\3\33"+
+ "\3\33\3\34\3\34\3\34\3\34\3\34\3\35\3\35\3\35\3\35\5\35\u0107\n\35\3\35"+
+ "\3\35\3\36\3\36\3\36\5\36\u010e\n\36\7\36\u0110\n\36\f\36\16\36\u0113"+
+ "\13\36\3\36\3\36\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3\37\3 \3 \3 \3 \3"+
+ " \3!\3!\3!\3!\3!\3!\7!\u012a\n!\f!\16!\u012d\13!\3\"\3\"\3\"\3\"\3\"\3"+
+ "\"\7\"\u0135\n\"\f\"\16\"\u0138\13\"\3#\3#\3#\3#\3#\3#\7#\u0140\n#\f#"+
+ "\16#\u0143\13#\3$\3$\3$\3$\3$\3$\7$\u014b\n$\f$\16$\u014e\13$\3%\3%\3"+
+ "%\3%\3%\3%\7%\u0156\n%\f%\16%\u0159\13%\3&\3&\3&\3&\3&\3&\7&\u0161\n&"+
+ "\f&\16&\u0164\13&\3\'\3\'\3\'\3\'\3\'\3\'\7\'\u016c\n\'\f\'\16\'\u016f"+
+ "\13\'\3(\3(\3(\3(\3(\3(\7(\u0177\n(\f(\16(\u017a\13(\3)\3)\3)\3)\3)\3"+
+ ")\7)\u0182\n)\f)\16)\u0185\13)\3*\3*\3+\3+\3,\3,\3,\3,\3,\3,\3,\3,\3,"+
+ "\3,\3,\3,\3,\3,\3,\3,\3,\3,\5,\u019d\n,\3-\3-\3.\3.\3.\3.\3.\3.\3/\3/"+
+ "\3/\3/\3/\3/\3/\3/\3\60\3\60\3\60\3\60\3\60\3\60\3\61\3\61\3\61\3\62\3"+
+ "\62\3\62\2\63\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64"+
+ "\668:<>@BDFHJLNPRTVXZ\\^`b\2\3\4\2%&\67\67\u01b9\2d\3\2\2\2\4g\3\2\2\2"+
+ "\6\u0080\3\2\2\2\b\u0083\3\2\2\2\n\u008b\3\2\2\2\f\u008e\3\2\2\2\16\u00a7"+
+ "\3\2\2\2\20\u00bb\3\2\2\2\22\u00bd\3\2\2\2\24\u00bf\3\2\2\2\26\u00c1\3"+
+ "\2\2\2\30\u00c3\3\2\2\2\32\u00c5\3\2\2\2\34\u00c7\3\2\2\2\36\u00c9\3\2"+
+ "\2\2 \u00cb\3\2\2\2\"\u00cd\3\2\2\2$\u00cf\3\2\2\2&\u00d1\3\2\2\2(\u00d3"+
+ "\3\2\2\2*\u00d5\3\2\2\2,\u00d7\3\2\2\2.\u00e4\3\2\2\2\60\u00ed\3\2\2\2"+
+ "\62\u00f0\3\2\2\2\64\u00f5\3\2\2\2\66\u00fd\3\2\2\28\u0102\3\2\2\2:\u010a"+
+ "\3\2\2\2<\u0116\3\2\2\2>\u011e\3\2\2\2@\u0123\3\2\2\2B\u012e\3\2\2\2D"+
+ "\u0139\3\2\2\2F\u0144\3\2\2\2H\u014f\3\2\2\2J\u015a\3\2\2\2L\u0165\3\2"+
+ "\2\2N\u0170\3\2\2\2P\u017b\3\2\2\2R\u0186\3\2\2\2T\u0188\3\2\2\2V\u019c"+
+ "\3\2\2\2X\u019e\3\2\2\2Z\u01a0\3\2\2\2\\\u01a6\3\2\2\2^\u01ae\3\2\2\2"+
+ "`\u01b4\3\2\2\2b\u01b7\3\2\2\2de\5\6\4\2ef\7\2\2\3f\3\3\2\2\2gh\7\22\2"+
+ "\2hi\7\f\2\2ij\78\2\2jk\5\6\4\2kl\79\2\2lm\7$\2\2mn\7\f\2\2no\78\2\2o"+
+ "p\5\6\4\2pq\79\2\2q\5\3\2\2\2r\177\5\b\5\2s\177\5\64\33\2t\177\58\35\2"+
+ "u\177\5<\37\2v\177\5\20\t\2w\177\5\f\7\2x\177\5\16\b\2y\177\5Z.\2z\177"+
+ "\5\\/\2{\177\5^\60\2|\177\5`\61\2}\177\5\60\31\2~r\3\2\2\2~s\3\2\2\2~"+
+ "t\3\2\2\2~u\3\2\2\2~v\3\2\2\2~w\3\2\2\2~x\3\2\2\2~y\3\2\2\2~z\3\2\2\2"+
+ "~{\3\2\2\2~|\3\2\2\2~}\3\2\2\2\177\u0082\3\2\2\2\u0080~\3\2\2\2\u0080"+
+ "\u0081\3\2\2\2\u0081\7\3\2\2\2\u0082\u0080\3\2\2\2\u0083\u0084\7\20\2"+
+ "\2\u0084\u0085\5\n\6\2\u0085\u0086\7!\2\2\u0086\u0087\7,\2\2\u0087\t\3"+
+ "\2\2\2\u0088\u008a\t\2\2\2\u0089\u0088\3\2\2\2\u008a\u008d\3\2\2\2\u008b"+
+ "\u0089\3\2\2\2\u008b\u008c\3\2\2\2\u008c\13\3\2\2\2\u008d\u008b\3\2\2"+
+ "\2\u008e\u008f\7\r\2\2\u008f\u0090\5T+\2\u0090\u0091\7\f\2\2\u0091\u0092"+
+ "\78\2\2\u0092\u0093\5\6\4\2\u0093\u009d\79\2\2\u0094\u0095\7\35\2\2\u0095"+
+ "\u0096\5T+\2\u0096\u0097\7\f\2\2\u0097\u0098\78\2\2\u0098\u0099\5\6\4"+
+ "\2\u0099\u009a\79\2\2\u009a\u009c\3\2\2\2\u009b\u0094\3\2\2\2\u009c\u009f"+
+ "\3\2\2\2\u009d\u009b\3\2\2\2\u009d\u009e\3\2\2\2\u009e\u00a5\3\2\2\2\u009f"+
+ "\u009d\3\2\2\2\u00a0\u00a1\7\32\2\2\u00a1\u00a2\78\2\2\u00a2\u00a3\5\6"+
+ "\4\2\u00a3\u00a4\79\2\2\u00a4\u00a6\3\2\2\2\u00a5\u00a0\3\2\2\2\u00a5"+
+ "\u00a6\3\2\2\2\u00a6\r\3\2\2\2\u00a7\u00a8\7\t\2\2\u00a8\u00a9\5T+\2\u00a9"+
+ "\u00aa\7\f\2\2\u00aa\u00ab\78\2\2\u00ab\u00ac\5\6\4\2\u00ac\u00ad\79\2"+
+ "\2\u00ad\17\3\2\2\2\u00ae\u00bc\5\22\n\2\u00af\u00bc\5\24\13\2\u00b0\u00bc"+
+ "\5\26\f\2\u00b1\u00bc\5\30\r\2\u00b2\u00bc\5\32\16\2\u00b3\u00bc\5\34"+
+ "\17\2\u00b4\u00bc\5\36\20\2\u00b5\u00bc\5 \21\2\u00b6\u00bc\5\"\22\2\u00b7"+
+ "\u00bc\5$\23\2\u00b8\u00bc\5&\24\2\u00b9\u00bc\5(\25\2\u00ba\u00bc\5*"+
+ "\26\2\u00bb\u00ae\3\2\2\2\u00bb\u00af\3\2\2\2\u00bb\u00b0\3\2\2\2\u00bb"+
+ "\u00b1\3\2\2\2\u00bb\u00b2\3\2\2\2\u00bb\u00b3\3\2\2\2\u00bb\u00b4\3\2"+
+ "\2\2\u00bb\u00b5\3\2\2\2\u00bb\u00b6\3\2\2\2\u00bb\u00b7\3\2\2\2\u00bb"+
+ "\u00b8\3\2\2\2\u00bb\u00b9\3\2\2\2\u00bb\u00ba\3\2\2\2\u00bc\21\3\2\2"+
+ "\2\u00bd\u00be\7\27\2\2\u00be\23\3\2\2\2\u00bf\u00c0\7\37\2\2\u00c0\25"+
+ "\3\2\2\2\u00c1\u00c2\7\21\2\2\u00c2\27\3\2\2\2\u00c3\u00c4\7\31\2\2\u00c4"+
+ "\31\3\2\2\2\u00c5\u00c6\7\33\2\2\u00c6\33\3\2\2\2\u00c7\u00c8\7\b\2\2"+
+ "\u00c8\35\3\2\2\2\u00c9\u00ca\7 \2\2\u00ca\37\3\2\2\2\u00cb\u00cc\7\23"+
+ "\2\2\u00cc!\3\2\2\2\u00cd\u00ce\7\5\2\2\u00ce#\3\2\2\2\u00cf\u00d0\7\17"+
+ "\2\2\u00d0%\3\2\2\2\u00d1\u00d2\7#\2\2\u00d2\'\3\2\2\2\u00d3\u00d4\7\26"+
+ "\2\2\u00d4)\3\2\2\2\u00d5\u00d6\7\"\2\2\u00d6+\3\2\2\2\u00d7\u00d8\7\7"+
+ "\2\2\u00d8\u00d9\7\13\2\2\u00d9\u00da\5V,\2\u00da\u00db\7\6\2\2\u00db"+
+ "\u00dc\5V,\2\u00dc\u00dd\7\6\2\2\u00dd\u00de\5V,\2\u00de\u00df\7\6\2\2"+
+ "\u00df\u00e0\5V,\2\u00e0\u00e1\7\6\2\2\u00e1\u00e2\5V,\2\u00e2\u00e3\7"+
+ "\30\2\2\u00e3-\3\2\2\2\u00e4\u00e5\7\16\2\2\u00e5\u00e6\7\13\2\2\u00e6"+
+ "\u00e7\5V,\2\u00e7\u00e8\7\6\2\2\u00e8\u00e9\5V,\2\u00e9\u00ea\7\6\2\2"+
+ "\u00ea\u00eb\5V,\2\u00eb\u00ec\7\30\2\2\u00ec/\3\2\2\2\u00ed\u00ee\5."+
+ "\30\2\u00ee\u00ef\7,\2\2\u00ef\61\3\2\2\2\u00f0\u00f1\7\34\2\2\u00f1\u00f2"+
+ "\7\n\2\2\u00f2\u00f3\5R*\2\u00f3\u00f4\7\3\2\2\u00f4\63\3\2\2\2\u00f5"+
+ "\u00f6\7/\2\2\u00f6\u00f7\7\n\2\2\u00f7\u00f8\5V,\2\u00f8\u00f9\7\3\2"+
+ "\2\u00f9\u00fa\7+\2\2\u00fa\u00fb\5R*\2\u00fb\u00fc\7,\2\2\u00fc\65\3"+
+ "\2\2\2\u00fd\u00fe\7/\2\2\u00fe\u00ff\7\n\2\2\u00ff\u0100\5V,\2\u0100"+
+ "\u0101\7\3\2\2\u0101\67\3\2\2\2\u0102\u0103\7/\2\2\u0103\u0106\7+\2\2"+
+ "\u0104\u0107\5R*\2\u0105\u0107\5:\36\2\u0106\u0104\3\2\2\2\u0106\u0105"+
+ "\3\2\2\2\u0107\u0108\3\2\2\2\u0108\u0109\7,\2\2\u01099\3\2\2\2\u010a\u0111"+
+ "\7\n\2\2\u010b\u010d\5V,\2\u010c\u010e\7\6\2\2\u010d\u010c\3\2\2\2\u010d"+
+ "\u010e\3\2\2\2\u010e\u0110\3\2\2\2\u010f\u010b\3\2\2\2\u0110\u0113\3\2"+
+ "\2\2\u0111\u010f\3\2\2\2\u0111\u0112\3\2\2\2\u0112\u0114\3\2\2\2\u0113"+
+ "\u0111\3\2\2\2\u0114\u0115\7\3\2\2\u0115;\3\2\2\2\u0116\u0117\7\24\2\2"+
+ "\u0117\u0118\7\n\2\2\u0118\u0119\5R*\2\u0119\u011a\7\3\2\2\u011a\u011b"+
+ "\7+\2\2\u011b\u011c\5R*\2\u011c\u011d\7,\2\2\u011d=\3\2\2\2\u011e\u011f"+
+ "\7\24\2\2\u011f\u0120\7\n\2\2\u0120\u0121\5R*\2\u0121\u0122\7\3\2\2\u0122"+
+ "?\3\2\2\2\u0123\u0124\b!\1\2\u0124\u0125\5V,\2\u0125\u012b\3\2\2\2\u0126"+
+ "\u0127\6!\2\3\u0127\u0128\7\61\2\2\u0128\u012a\5V,\2\u0129\u0126\3\2\2"+
+ "\2\u012a\u012d\3\2\2\2\u012b\u0129\3\2\2\2\u012b\u012c\3\2\2\2\u012cA"+
+ "\3\2\2\2\u012d\u012b\3\2\2\2\u012e\u012f\b\"\1\2\u012f\u0130\5@!\2\u0130"+
+ "\u0136\3\2\2\2\u0131\u0132\6\"\3\3\u0132\u0133\7\60\2\2\u0133\u0135\5"+
+ "@!\2\u0134\u0131\3\2\2\2\u0135\u0138\3\2\2\2\u0136\u0134\3\2\2\2\u0136"+
+ "\u0137\3\2\2\2\u0137C\3\2\2\2\u0138\u0136\3\2\2\2\u0139\u013a\b#\1\2\u013a"+
+ "\u013b\5B\"\2\u013b\u0141\3\2\2\2\u013c\u013d\6#\4\3\u013d\u013e\7\62"+
+ "\2\2\u013e\u0140\5B\"\2\u013f\u013c\3\2\2\2\u0140\u0143\3\2\2\2\u0141"+
+ "\u013f\3\2\2\2\u0141\u0142\3\2\2\2\u0142E\3\2\2\2\u0143\u0141\3\2\2\2"+
+ "\u0144\u0145\b$\1\2\u0145\u0146\5D#\2\u0146\u014c\3\2\2\2\u0147\u0148"+
+ "\6$\5\3\u0148\u0149\7\63\2\2\u0149\u014b\5D#\2\u014a\u0147\3\2\2\2\u014b"+
+ "\u014e\3\2\2\2\u014c\u014a\3\2\2\2\u014c\u014d\3\2\2\2\u014dG\3\2\2\2"+
+ "\u014e\u014c\3\2\2\2\u014f\u0150\b%\1\2\u0150\u0151\5F$\2\u0151\u0157"+
+ "\3\2\2\2\u0152\u0153\6%\6\3\u0153\u0154\7\64\2\2\u0154\u0156\5F$\2\u0155"+
+ "\u0152\3\2\2\2\u0156\u0159\3\2\2\2\u0157\u0155\3\2\2\2\u0157\u0158\3\2"+
+ "\2\2\u0158I\3\2\2\2\u0159\u0157\3\2\2\2\u015a\u015b\b&\1\2\u015b\u015c"+
+ "\5H%\2\u015c\u0162\3\2\2\2\u015d\u015e\6&\7\3\u015e\u015f\7\'\2\2\u015f"+
+ "\u0161\5H%\2\u0160\u015d\3\2\2\2\u0161\u0164\3\2\2\2\u0162\u0160\3\2\2"+
+ "\2\u0162\u0163\3\2\2\2\u0163K\3\2\2\2\u0164\u0162\3\2\2\2\u0165\u0166"+
+ "\b\'\1\2\u0166\u0167\5J&\2\u0167\u016d\3\2\2\2\u0168\u0169\6\'\b\3\u0169"+
+ "\u016a\7\65\2\2\u016a\u016c\5J&\2\u016b\u0168\3\2\2\2\u016c\u016f\3\2"+
+ "\2\2\u016d\u016b\3\2\2\2\u016d\u016e\3\2\2\2\u016eM\3\2\2\2\u016f\u016d"+
+ "\3\2\2\2\u0170\u0171\b(\1\2\u0171\u0172\5L\'\2\u0172\u0178\3\2\2\2\u0173"+
+ "\u0174\6(\t\3\u0174\u0175\7(\2\2\u0175\u0177\5L\'\2\u0176\u0173\3\2\2"+
+ "\2\u0177\u017a\3\2\2\2\u0178\u0176\3\2\2\2\u0178\u0179\3\2\2\2\u0179O"+
+ "\3\2\2\2\u017a\u0178\3\2\2\2\u017b\u017c\b)\1\2\u017c\u017d\5N(\2\u017d"+
+ "\u0183\3\2\2\2\u017e\u017f\6)\n\3\u017f\u0180\7)\2\2\u0180\u0182\5N(\2"+
+ "\u0181\u017e\3\2\2\2\u0182\u0185\3\2\2\2\u0183\u0181\3\2\2\2\u0183\u0184"+
+ "\3\2\2\2\u0184Q\3\2\2\2\u0185\u0183\3\2\2\2\u0186\u0187\5P)\2\u0187S\3"+
+ "\2\2\2\u0188\u0189\5R*\2\u0189U\3\2\2\2\u018a\u019d\7%\2\2\u018b\u019d"+
+ "\5X-\2\u018c\u019d\5b\62\2\u018d\u019d\5\20\t\2\u018e\u018f\7\13\2\2\u018f"+
+ "\u0190\5R*\2\u0190\u0191\7\30\2\2\u0191\u019d\3\2\2\2\u0192\u0193\7*\2"+
+ "\2\u0193\u0194\7\13\2\2\u0194\u0195\5R*\2\u0195\u0196\7\30\2\2\u0196\u019d"+
+ "\3\2\2\2\u0197\u019d\5,\27\2\u0198\u019d\5\62\32\2\u0199\u019d\5.\30\2"+
+ "\u019a\u019d\5> \2\u019b\u019d\5\66\34\2\u019c\u018a\3\2\2\2\u019c\u018b"+
+ "\3\2\2\2\u019c\u018c\3\2\2\2\u019c\u018d\3\2\2\2\u019c\u018e\3\2\2\2\u019c"+
+ "\u0192\3\2\2\2\u019c\u0197\3\2\2\2\u019c\u0198\3\2\2\2\u019c\u0199\3\2"+
+ "\2\2\u019c\u019a\3\2\2\2\u019c\u019b\3\2\2\2\u019dW\3\2\2\2\u019e\u019f"+
+ "\7\67\2\2\u019fY\3\2\2\2\u01a0\u01a1\7\36\2\2\u01a1\u01a2\7\13\2\2\u01a2"+
+ "\u01a3\5R*\2\u01a3\u01a4\7\30\2\2\u01a4\u01a5\7,\2\2\u01a5[\3\2\2\2\u01a6"+
+ "\u01a7\7\36\2\2\u01a7\u01a8\7\13\2\2\u01a8\u01a9\5R*\2\u01a9\u01aa\7\6"+
+ "\2\2\u01aa\u01ab\5R*\2\u01ab\u01ac\7\30\2\2\u01ac\u01ad\7,\2\2\u01ad]"+
+ "\3\2\2\2\u01ae\u01af\7\25\2\2\u01af\u01b0\7\13\2\2\u01b0\u01b1\5R*\2\u01b1"+
+ "\u01b2\7\30\2\2\u01b2\u01b3\7,\2\2\u01b3_\3\2\2\2\u01b4\u01b5\7\4\2\2"+
+ "\u01b5\u01b6\7,\2\2\u01b6a\3\2\2\2\u01b7\u01b8\7/\2\2\u01b8c\3\2\2\2\25"+
+ "~\u0080\u008b\u009d\u00a5\u00bb\u0106\u010d\u0111\u012b\u0136\u0141\u014c"+
+ "\u0157\u0162\u016d\u0178\u0183\u019c";
public static final ATN _ATN =
ATNSimulator.deserialize(_serializedATN.toCharArray());
static {
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentToAssemblyCompiler.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentToAssemblyCompiler.java
index ad4a3615..8a66e59e 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentToAssemblyCompiler.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentToAssemblyCompiler.java
@@ -599,7 +599,7 @@ public class SerpentToAssemblyCompiler extends SerpentBaseVisitor {
String operand2 = visit(ctx.int_val(2));
// OUTDATASIZE OUTDATASTART INDATASIZE INDATASTART VALUE TO GAS CALL
- return String.format("0 0 0 0 %s %s %s CALL ", operand1, operand0, operand2);
+ return String.format("0 0 0 0 %s %s %s CALL ", operand2, operand1, operand0);
}
@Override
diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentVisitor.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentVisitor.java
index cd1ed97d..c8e6fd55 100644
--- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentVisitor.java
+++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentVisitor.java
@@ -32,20 +32,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitIf_elif_else_stmt(@NotNull SerpentParser.If_elif_else_stmtContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#get_var}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitGet_var(@NotNull SerpentParser.Get_varContext ctx);
-
- /**
- * Visit a parse tree produced by {@link SerpentParser#block}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBlock(@NotNull SerpentParser.BlockContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#tx_origin}.
* @param ctx the parse tree
@@ -67,13 +53,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitContract_storage_assign(@NotNull SerpentParser.Contract_storage_assignContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#tx_gas}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#block_number}.
* @param ctx the parse tree
@@ -81,13 +60,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitBlock_number(@NotNull SerpentParser.Block_numberContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#in_or_exp}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#add_expr}.
* @param ctx the parse tree
@@ -95,20 +67,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitAdd_expr(@NotNull SerpentParser.Add_exprContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#msg_datasize}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
-
- /**
- * Visit a parse tree produced by {@link SerpentParser#msg_sender}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#block_difficulty}.
* @param ctx the parse tree
@@ -116,13 +74,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitBlock_difficulty(@NotNull SerpentParser.Block_difficultyContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#array_assign}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#array_retreive}.
* @param ctx the parse tree
@@ -130,13 +81,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitArray_retreive(@NotNull SerpentParser.Array_retreiveContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#parse_init_code_block}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#tx_gasprice}.
* @param ctx the parse tree
@@ -151,13 +95,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitContract_storage_load(@NotNull SerpentParser.Contract_storage_loadContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#ex_or_exp}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#block_gaslimit}.
* @param ctx the parse tree
@@ -172,6 +109,139 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitRel_exp(@NotNull SerpentParser.Rel_expContext ctx);
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#hex_num}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitHex_num(@NotNull SerpentParser.Hex_numContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#eq_exp}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#condition}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitCondition(@NotNull SerpentParser.ConditionContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#send_func}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#block_prevhash}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#mul_expr}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#msg_data}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#asm}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitAsm(@NotNull SerpentParser.AsmContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#msg_value}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#get_var}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitGet_var(@NotNull SerpentParser.Get_varContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#block}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitBlock(@NotNull SerpentParser.BlockContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#tx_gas}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitTx_gas(@NotNull SerpentParser.Tx_gasContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#in_or_exp}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitIn_or_exp(@NotNull SerpentParser.In_or_expContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#msg_datasize}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitMsg_datasize(@NotNull SerpentParser.Msg_datasizeContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#msg_sender}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitMsg_sender(@NotNull SerpentParser.Msg_senderContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#array_assign}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitArray_assign(@NotNull SerpentParser.Array_assignContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#parse_init_code_block}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitParse_init_code_block(@NotNull SerpentParser.Parse_init_code_blockContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#single_send_fund}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitSingle_send_fund(@NotNull SerpentParser.Single_send_fundContext ctx);
+
+ /**
+ * Visit a parse tree produced by {@link SerpentParser#ex_or_exp}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitEx_or_exp(@NotNull SerpentParser.Ex_or_expContext ctx);
+
/**
* Visit a parse tree produced by {@link SerpentParser#msg_func}.
* @param ctx the parse tree
@@ -193,13 +263,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitSuicide_func(@NotNull SerpentParser.Suicide_funcContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#hex_num}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitHex_num(@NotNull SerpentParser.Hex_numContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#contract_balance}.
* @param ctx the parse tree
@@ -207,20 +270,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitContract_balance(@NotNull SerpentParser.Contract_balanceContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#condition}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitCondition(@NotNull SerpentParser.ConditionContext ctx);
-
- /**
- * Visit a parse tree produced by {@link SerpentParser#eq_exp}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitEq_exp(@NotNull SerpentParser.Eq_expContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#stop_func}.
* @param ctx the parse tree
@@ -243,11 +292,11 @@ public interface SerpentVisitor extends ParseTreeVisitor {
T visitBlock_timestamp(@NotNull SerpentParser.Block_timestampContext ctx);
/**
- * Visit a parse tree produced by {@link SerpentParser#send_func}.
+ * Visit a parse tree produced by {@link SerpentParser#while_stmt}.
* @param ctx the parse tree
* @return the visitor result
*/
- T visitSend_func(@NotNull SerpentParser.Send_funcContext ctx);
+ T visitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
/**
* Visit a parse tree produced by {@link SerpentParser#arr_def}.
@@ -256,13 +305,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitArr_def(@NotNull SerpentParser.Arr_defContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#while_stmt}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitWhile_stmt(@NotNull SerpentParser.While_stmtContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#special_func}.
* @param ctx the parse tree
@@ -291,20 +333,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitAnd_exp(@NotNull SerpentParser.And_expContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#block_prevhash}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitBlock_prevhash(@NotNull SerpentParser.Block_prevhashContext ctx);
-
- /**
- * Visit a parse tree produced by {@link SerpentParser#mul_expr}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMul_expr(@NotNull SerpentParser.Mul_exprContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#int_val}.
* @param ctx the parse tree
@@ -312,13 +340,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitInt_val(@NotNull SerpentParser.Int_valContext ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#msg_data}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMsg_data(@NotNull SerpentParser.Msg_dataContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#ret_func_2}.
* @param ctx the parse tree
@@ -326,20 +347,6 @@ public interface SerpentVisitor extends ParseTreeVisitor {
*/
T visitRet_func_2(@NotNull SerpentParser.Ret_func_2Context ctx);
- /**
- * Visit a parse tree produced by {@link SerpentParser#msg_value}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitMsg_value(@NotNull SerpentParser.Msg_valueContext ctx);
-
- /**
- * Visit a parse tree produced by {@link SerpentParser#asm}.
- * @param ctx the parse tree
- * @return the visitor result
- */
- T visitAsm(@NotNull SerpentParser.AsmContext ctx);
-
/**
* Visit a parse tree produced by {@link SerpentParser#ret_func_1}.
* @param ctx the parse tree