[SVN-NetXMS] revision 3327

From: NetXMS.org SVN Server <svn_at_DOMAIN_REMOVED>
Date: Fri, 20 Jun 2008 16:57:39 +0300

* { font-family: Consolas, Lucida Console, Courier New; font-size: 100%; }
h1 { font-size: 150%; }
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
pre { line-height: 100%; width: 100%; }
.highlight span { width: 100%; display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; }
body { background: #ffffff; }
body .c { color: #999988; font-style: italic } /* Comment */
body .err { color: #a61717; background-color: #e3d2d2 } /* Error */
body .k { font-weight: bold } /* Keyword */
body .o { font-weight: bold } /* Operator */
body .cm { color: #999988; font-style: italic } /* Comment.Multiline */
body .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
body .c1 { color: #999988; font-style: italic } /* Comment.Single */
body .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
body .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
body .ge { font-style: italic } /* Generic.Emph */
body .gr { color: #aa0000 } /* Generic.Error */
body .gh { color: #999999 } /* Generic.Heading */
body .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
body .go { color: #888888 } /* Generic.Output */
body .gp { color: #555555 } /* Generic.Prompt */
body .gs { font-weight: bold } /* Generic.Strong */
body .gu { color: #aaaaaa } /* Generic.Subheading */
body .gt { color: #aa0000 } /* Generic.Traceback */
body .kc { font-weight: bold } /* Keyword.Constant */
body .kd { font-weight: bold } /* Keyword.Declaration */
body .kp { font-weight: bold } /* Keyword.Pseudo */
body .kr { font-weight: bold } /* Keyword.Reserved */
body .kt { color: #445588; font-weight: bold } /* Keyword.Type */
body .m { color: #009999 } /* Literal.Number */
body .s { color: #bb8844 } /* Literal.String */
body .na { color: #008080 } /* Name.Attribute */
body .nb { color: #999999 } /* Name.Builtin */
body .nc { color: #445588; font-weight: bold } /* Name.Class */
body .no { color: #008080 } /* Name.Constant */
body .ni { color: #800080 } /* Name.Entity */
body .ne { color: #990000; font-weight: bold } /* Name.Exception */
body .nf { color: #990000; font-weight: bold } /* Name.Function */
body .nn { color: #555555 } /* Name.Namespace */
body .nt { color: #000080 } /* Name.Tag */
body .nv { color: #008080 } /* Name.Variable */
body .ow { font-weight: bold } /* Operator.Word */
body .w { color: #bbbbbb } /* Text.Whitespace */
body .mf { color: #009999 } /* Literal.Number.Float */
body .mh { color: #009999 } /* Literal.Number.Hex */
body .mi { color: #009999 } /* Literal.Number.Integer */
body .mo { color: #009999 } /* Literal.Number.Oct */
body .sb { color: #bb8844 } /* Literal.String.Backtick */
body .sc { color: #bb8844 } /* Literal.String.Char */
body .sd { color: #bb8844 } /* Literal.String.Doc */
body .s2 { color: #bb8844 } /* Literal.String.Double */
body .se { color: #bb8844 } /* Literal.String.Escape */
body .sh { color: #bb8844 } /* Literal.String.Heredoc */
body .si { color: #bb8844 } /* Literal.String.Interpol */
body .sx { color: #bb8844 } /* Literal.String.Other */
body .sr { color: #808000 } /* Literal.String.Regex */
body .s1 { color: #bb8844 } /* Literal.String.Single */
body .ss { color: #bb8844 } /* Literal.String.Symbol */
body .bp { color: #999999 } /* Name.Builtin.Pseudo */
body .vc { color: #008080 } /* Name.Variable.Class */
body .vg { color: #008080 } /* Name.Variable.Global */
body .vi { color: #008080 } /* Name.Variable.Instance */
body .il { color: #009999 } /* Literal.Number.Integer.Long */

Info

Revision:3327
Author:alk

Date:2008-06-20 16:57:38 +0300 (Fri, 20 Jun 2008)

Comment:eols fixed; style changed

Changes
UU trunk/src/libnxsl/parser.y

Diff
Modified: trunk/src/libnxsl/parser.y
===================================================================
--- trunk/src/libnxsl/parser.y 2008-06-20 11:29:38 UTC (rev 3326)
+++ trunk/src/libnxsl/parser.y 2008-06-20 13:57:38 UTC (rev 3327)
@@ -36,7 +36,7 @@
         NXSL_Instruction *pInstruction;
 }
 
-%token T_ARRAY
+%token T_ARRAY
 %token T_BREAK
 %token T_CASE
 %token T_CONTINUE
@@ -48,7 +48,7 @@
 %token T_IF
 %token T_NULL
 %token T_PRINT
-%token T_PRINTLN
+%token T_PRINTLN
 %token T_RETURN
 %token T_SUB
 %token T_SWITCH
@@ -149,7 +149,7 @@
                         pCompiler-&gt;Error(szErrorText);
                         pLexer-&gt;SetErrorState();
                 }
- free($2);
+ free($2);
                 pCompiler-&gt;SetIdentifierOperation(OPCODE_BIND);
         }
         ParameterDeclaration Block
@@ -207,14 +207,14 @@
 {
         pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_SET, $1));
 }
-| Expression &#39;[&#39; Expression &#39;]&#39; &#39;=&#39; Expression
-{
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_SET_ELEMENT));
-}
-| Expression &#39;[&#39; Expression &#39;]&#39;
-{
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_GET_ELEMENT));
-}
+| Expression &#39;[&#39; Expression &#39;]&#39; &#39;=&#39; Expression
+{
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_SET_ELEMENT));
+}
+| Expression &#39;[&#39; Expression &#39;]&#39;
+{
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_GET_ELEMENT));
+}
 | Expression T_REF T_IDENTIFIER
 {
         pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_REFERENCE, $3));
@@ -404,13 +404,13 @@
 ;
 
 BuiltinStatement:
- SimpleStatement &#39;;&#39;
+ SimpleStatement &#39;;&#39;
 | PrintlnStatement
 | IfStatement
 | DoStatement
 | WhileStatement
 | SwitchStatement
-| ArrayStatement
+| ArrayStatement
 | T_BREAK &#39;;&#39;
 {
         if (pCompiler-&gt;CanUseBreak())
@@ -463,21 +463,21 @@
 | T_PRINT
 {
         $$ = new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PRINT);
-}
-;
-
+}
+;
+
 PrintlnStatement:
- T_PRINTLN Expression &#39;;&#39;
-{
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PUSH_CONSTANT, new NXSL_Value(_T(&quot;\n&quot;))));
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_CONCAT));
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PRINT));
-}
-| T_PRINTLN &#39;;&#39;
-{
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PUSH_CONSTANT, new NXSL_Value(_T(&quot;\n&quot;))));
- pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PRINT));
-}
+ T_PRINTLN Expression &#39;;&#39;
+{
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PUSH_CONSTANT, new NXSL_Value(_T(&quot;\n&quot;))));
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_CONCAT));
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PRINT));
+}
+| T_PRINTLN &#39;;&#39;
+{
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PUSH_CONSTANT, new NXSL_Value(_T(&quot;\n&quot;))));
+ pScript-&gt;AddInstruction(new NXSL_Instruction(pLexer-&gt;GetCurrLine(), OPCODE_PRINT));
+}
 ;
 
 IfStatement:
@@ -578,12 +578,12 @@
 Default:
         T_DEFAULT &#39;:&#39; StatementList
 |
-;
-
-ArrayStatement:
- T_ARRAY { pCompiler-&gt;SetIdentifierOperation(OPCODE_ARRAY); } IdentifierList &#39;;&#39;
 ;
 
+ArrayStatement:
+ T_ARRAY { pCompiler-&gt;SetIdentifierOperation(OPCODE_ARRAY); } IdentifierList &#39;;&#39;
+;
+
 FunctionCall:
         FunctionName ParameterList &#39;)&#39;
 {

Property changes on: trunk/src/libnxsl/parser.y
___________________________________________________________________
Added: svn:eol-style
   + native
Received on Fri Jun 20 2008 - 16:57:39 EEST

This archive was generated by hypermail 2.2.0 : Fri Jun 20 2008 - 16:53:36 EEST