Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/ttcn
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: TTCN mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel="stylesheet" href="../../lib/codemirror.css">
[6] Fix | Delete
<script src="../../lib/codemirror.js"></script>
[7] Fix | Delete
<script src="ttcn.js"></script>
[8] Fix | Delete
<style type="text/css">
[9] Fix | Delete
.CodeMirror {
[10] Fix | Delete
border-top: 1px solid black;
[11] Fix | Delete
border-bottom: 1px solid black;
[12] Fix | Delete
}
[13] Fix | Delete
</style>
[14] Fix | Delete
<div id=nav>
[15] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1>
[16] Fix | Delete
<img id=logo src="../../doc/logo.png">
[17] Fix | Delete
</a>
[18] Fix | Delete
[19] Fix | Delete
<ul>
[20] Fix | Delete
<li><a href="../../index.html">Home</a>
[21] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[22] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[23] Fix | Delete
</ul>
[24] Fix | Delete
<ul>
[25] Fix | Delete
<li><a href="../index.html">Language modes</a>
[26] Fix | Delete
<li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>
[27] Fix | Delete
</ul>
[28] Fix | Delete
</div>
[29] Fix | Delete
<article>
[30] Fix | Delete
<h2>TTCN example</h2>
[31] Fix | Delete
<div>
[32] Fix | Delete
<textarea id="ttcn-code">
[33] Fix | Delete
module Templates {
[34] Fix | Delete
/* import types from ASN.1 */
[35] Fix | Delete
import from Types language "ASN.1:1997" all;
[36] Fix | Delete
[37] Fix | Delete
/* During the conversion phase from ASN.1 to TTCN-3 */
[38] Fix | Delete
/* - the minus sign (Message-Type) within the identifiers will be replaced by underscore (Message_Type)*/
[39] Fix | Delete
/* - the ASN.1 identifiers matching a TTCN-3 keyword (objid) will be postfixed with an underscore (objid_)*/
[40] Fix | Delete
[41] Fix | Delete
// simple types
[42] Fix | Delete
[43] Fix | Delete
template SenderID localObjid := objid {itu_t(0) identified_organization(4) etsi(0)};
[44] Fix | Delete
[45] Fix | Delete
// complex types
[46] Fix | Delete
[47] Fix | Delete
/* ASN.1 Message-Type mapped to TTCN-3 Message_Type */
[48] Fix | Delete
template Message receiveMsg(template (present) Message_Type p_messageType) := {
[49] Fix | Delete
header := p_messageType,
[50] Fix | Delete
body := ?
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
/* ASN.1 objid mapped to TTCN-3 objid_ */
[54] Fix | Delete
template Message sendInviteMsg := {
[55] Fix | Delete
header := inviteType,
[56] Fix | Delete
body := {
[57] Fix | Delete
/* optional fields may be assigned by omit or may be ignored/skipped */
[58] Fix | Delete
description := "Invite Message",
[59] Fix | Delete
data := 'FF'O,
[60] Fix | Delete
objid_ := localObjid
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
template Message sendAcceptMsg modifies sendInviteMsg := {
[65] Fix | Delete
header := acceptType,
[66] Fix | Delete
body := {
[67] Fix | Delete
description := "Accept Message"
[68] Fix | Delete
}
[69] Fix | Delete
};
[70] Fix | Delete
[71] Fix | Delete
template Message sendErrorMsg modifies sendInviteMsg := {
[72] Fix | Delete
header := errorType,
[73] Fix | Delete
body := {
[74] Fix | Delete
description := "Error Message"
[75] Fix | Delete
}
[76] Fix | Delete
};
[77] Fix | Delete
[78] Fix | Delete
template Message expectedErrorMsg := {
[79] Fix | Delete
header := errorType,
[80] Fix | Delete
body := ?
[81] Fix | Delete
};
[82] Fix | Delete
[83] Fix | Delete
template Message expectedInviteMsg modifies expectedErrorMsg := {
[84] Fix | Delete
header := inviteType
[85] Fix | Delete
};
[86] Fix | Delete
[87] Fix | Delete
template Message expectedAcceptMsg modifies expectedErrorMsg := {
[88] Fix | Delete
header := acceptType
[89] Fix | Delete
};
[90] Fix | Delete
[91] Fix | Delete
} with { encode "BER:1997" }
[92] Fix | Delete
</textarea>
[93] Fix | Delete
</div>
[94] Fix | Delete
[95] Fix | Delete
<script>
[96] Fix | Delete
var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-code"), {
[97] Fix | Delete
lineNumbers: true,
[98] Fix | Delete
matchBrackets: true,
[99] Fix | Delete
mode: "text/x-ttcn"
[100] Fix | Delete
});
[101] Fix | Delete
ttcnEditor.setSize(600, 860);
[102] Fix | Delete
var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;
[103] Fix | Delete
CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";
[104] Fix | Delete
</script>
[105] Fix | Delete
<br/>
[106] Fix | Delete
<p><strong>Language:</strong> Testing and Test Control Notation
[107] Fix | Delete
(<a href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>)
[108] Fix | Delete
</p>
[109] Fix | Delete
<p><strong>MIME types defined:</strong> <code>text/x-ttcn,
[110] Fix | Delete
text/x-ttcn3, text/x-ttcnpp</code>.</p>
[111] Fix | Delete
<br/>
[112] Fix | Delete
<p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson
[113] Fix | Delete
</a>.</p>
[114] Fix | Delete
<p>Coded by Asmelash Tsegay Gebretsadkan </p>
[115] Fix | Delete
</article>
[116] Fix | Delete
[117] Fix | Delete
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function