2021-04-30 17:53:28 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
2021-11-18 00:44:49 +02:00
< title > New Stage< / title >
2021-04-30 17:53:28 +03:00
< link href = "../docs-assets/Breadcrumbs.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< meta name = "viewport" content = "width=device-width initial-scale=1" >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
< meta http-equiv = "Content-Language" content = "en-gb" >
< link href = "../docs-assets/Contents.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< link href = "../docs-assets/Progress.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< link href = "../docs-assets/Navigation.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< link href = "../docs-assets/Fonts.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< link href = "../docs-assets/Base.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< script >
function togglePopup(material_id) {
var popup = document.getElementById(material_id);
popup.classList.toggle("show");
}
< / script >
< link href = "../docs-assets/Popups.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< link href = "../docs-assets/Colours.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< / head >
< body class = "commentary-font" >
< nav role = "navigation" >
2022-04-28 19:37:28 +03:00
< h1 > < a href = "../index.html" >
2021-04-30 17:53:28 +03:00
< img src = "../docs-assets/Inform.png" height = 72" >
< / a > < / h1 >
2022-04-28 19:37:28 +03:00
< ul > < li > < a href = "../index.html" > home< / a > < / li >
2022-04-04 20:31:44 +03:00
< / ul > < h2 > Compiler< / h2 > < ul >
< li > < a href = "../structure.html" > structure< / a > < / li >
< li > < a href = "../inbuildn.html" > inbuild< / a > < / li >
< li > < a href = "../inform7n.html" > inform7< / a > < / li >
< li > < a href = "../intern.html" > inter< / a > < / li >
< li > < a href = "../services.html" > services< / a > < / li >
2022-04-18 17:46:46 +03:00
< li > < a href = "../secrets.html" > secrets< / a > < / li >
2022-04-04 20:31:44 +03:00
< / ul > < h2 > Other Tools< / h2 > < ul >
< li > < a href = "../inblorbn.html" > inblorb< / a > < / li >
< li > < a href = "../indocn.html" > indoc< / a > < / li >
< li > < a href = "../inform6.html" > inform6< / a > < / li >
< li > < a href = "../inpolicyn.html" > inpolicy< / a > < / li >
< li > < a href = "../inrtpsn.html" > inrtps< / a > < / li >
2022-04-05 14:14:27 +03:00
< / ul > < h2 > Resources< / h2 > < ul >
< li > < a href = "../extensions.html" > extensions< / a > < / li >
< li > < a href = "../kits.html" > kits< / a > < / li >
2022-04-04 20:31:44 +03:00
< / ul > < h2 > Repository< / h2 > < ul >
< li > < a href = "https://github.com/ganelson/inform" > < img src = "../docs-assets/github.png" height = 18 > github< / a > < / li >
< / ul > < h2 > Related Projects< / h2 > < ul >
2022-04-28 19:20:06 +03:00
< li > < a href = "../../../inweb/index.html" > inweb< / a > < / li >
< li > < a href = "../../../intest/index.html" > intest< / a > < / li >
2021-04-30 17:53:28 +03:00
< / ul >
< / nav >
< main role = "main" >
2021-11-18 00:44:49 +02:00
<!-- Weave of 'New Stage' generated by Inweb -->
2021-04-30 17:53:28 +03:00
< div class = "breadcrumbs" >
2022-04-28 19:37:28 +03:00
< ul class = "crumbs" > < li > < a href = "../index.html" > Home< / a > < / li > < li > < a href = "../intern.html" > Inter Modules< / a > < / li > < li > < a href = "index.html" > pipeline< / a > < / li > < li > < a href = "index.html#2" > Chapter 2: Pipelines< / a > < / li > < li > < b > New Stage< / b > < / li > < / ul > < / div >
2022-03-21 01:45:45 +02:00
< p class = "purpose" > This stage takes an empty tree and equips it with just the absolute basics, so that it is ready to have substantive material added at a later stage.< / p >
2021-04-30 17:53:28 +03:00
2021-11-13 15:29:56 +02:00
< p class = "commentary firstcommentary" > < a id = "SP1" class = "paragraph-anchor" > < / a > < b > § 1. < / b > < / p >
2021-04-30 17:53:28 +03:00
< pre class = "displayed-code all-displayed-code code-font" >
2021-11-22 02:22:16 +02:00
< span class = "reserved-syntax" > void< / span > < span class = "plain-syntax" > < / span > < span class = "function-syntax" > NewStage::create_pipeline_stage< / span > < button class = "popup" onclick = "togglePopup('usagePopup1')" > < span class = "comment-syntax" > ?< / span > < span class = "popuptext" id = "usagePopup1" > Usage of < span class = "code-font" > < span class = "function-syntax" > NewStage::create_pipeline_stage< / span > < / span > :< br / > Parsing Pipelines - < a href = "2-pp.html#SP10" > § 10< / a > < / span > < / button > < span class = "plain-syntax" > (< / span > < span class = "reserved-syntax" > void< / span > < span class = "plain-syntax" > ) {< / span >
2021-11-30 02:18:02 +02:00
< span class = "plain-syntax" > < / span > < a href = "2-pp.html#SP3" class = "function-link" > < span class = "function-syntax" > ParsingPipelines::new_stage< / span > < / a > < span class = "plain-syntax" > (< / span > < span class = "identifier-syntax" > I< / span > < span class = "string-syntax" > "new"< / span > < span class = "plain-syntax" > , < / span > < a href = "2-ns.html#SP1" class = "function-link" > < span class = "function-syntax" > NewStage::run< / span > < / a > < span class = "plain-syntax" > , < / span > < span class = "constant-syntax" > NO_STAGE_ARG< / span > < span class = "plain-syntax" > , < / span > < span class = "identifier-syntax" > FALSE< / span > < span class = "plain-syntax" > );< / span >
2021-04-30 17:53:28 +03:00
< span class = "plain-syntax" > }< / span >
2021-11-18 00:44:49 +02:00
< span class = "reserved-syntax" > int< / span > < span class = "plain-syntax" > < / span > < span class = "function-syntax" > NewStage::run< / span > < span class = "plain-syntax" > (< / span > < span class = "reserved-syntax" > pipeline_step< / span > < span class = "plain-syntax" > *< / span > < span class = "identifier-syntax" > step< / span > < span class = "plain-syntax" > ) {< / span >
2022-01-08 12:00:07 +02:00
< span class = "plain-syntax" > < / span > < span class = "identifier-syntax" > inter_tree< / span > < span class = "plain-syntax" > *< / span > < span class = "identifier-syntax" > I< / span > < span class = "plain-syntax" > = < / span > < span class = "identifier-syntax" > step< / span > < span class = "plain-syntax" > -> < / span > < span class = "element-syntax" > ephemera< / span > < span class = "plain-syntax" > .< / span > < span class = "element-syntax" > tree< / span > < span class = "plain-syntax" > ;< / span >
2022-03-21 01:45:45 +02:00
< span class = "plain-syntax" > < / span > < span class = "identifier-syntax" > LargeScale::begin_new_tree< / span > < span class = "plain-syntax" > (< / span > < span class = "identifier-syntax" > I< / span > < span class = "plain-syntax" > );< / span >
2022-02-23 01:31:47 +02:00
< span class = "plain-syntax" > < / span > < span class = "identifier-syntax" > LargeScale::make_architectural_definitions< / span > < span class = "plain-syntax" > (< / span > < span class = "identifier-syntax" > I< / span > < span class = "plain-syntax" > , < / span > < a href = "1-pm.html#SP4" class = "function-link" > < span class = "function-syntax" > PipelineModule::get_architecture< / span > < / a > < span class = "plain-syntax" > ());< / span >
2021-11-19 01:49:34 +02:00
< span class = "plain-syntax" > < / span > < span class = "reserved-syntax" > return< / span > < span class = "plain-syntax" > < / span > < span class = "identifier-syntax" > TRUE< / span > < span class = "plain-syntax" > ;< / span >
< span class = "plain-syntax" > }< / span >
< / pre >
2021-04-30 17:53:28 +03:00
< nav role = "progress" > < div class = "progresscontainer" >
2022-01-30 15:32:38 +02:00
< ul class = "progressbar" > < li class = "progressprev" > < a href = "2-pe.html" > ❮ < / a > < / li > < li class = "progresschapter" > < a href = "P-wtmd.html" > P< / a > < / li > < li class = "progresschapter" > < a href = "1-pm.html" > 1< / a > < / li > < li class = "progresscurrentchapter" > 2< / li > < li class = "progresssection" > < a href = "2-pp.html" > pp< / a > < / li > < li class = "progresssection" > < a href = "2-rp.html" > rp< / a > < / li > < li class = "progresssection" > < a href = "2-pe.html" > pe< / a > < / li > < li class = "progresscurrent" > ns< / li > < li class = "progresssection" > < a href = "2-rmss.html" > rmss< / a > < / li > < li class = "progresschapter" > < a href = "3-ps.html" > 3< / a > < / li > < li class = "progresschapter" > < a href = "4-lbks.html" > 4< / a > < / li > < li class = "progresschapter" > < a href = "5-msms.html" > 5< / a > < / li > < li class = "progresschapter" > < a href = "6-erms.html" > 6< / a > < / li > < li class = "progressnext" > < a href = "2-rmss.html" > ❯ < / a > < / li > < / ul > < / div >
2021-04-30 17:53:28 +03:00
< / nav > <!-- End of weave -->
< / main >
< / body >
< / html >