Skip to content
wessupermare edited this page Jul 24, 2017 · 22 revisions

Welcome to the NetChains wiki! This is designed to serve as the man-page-esque document repository to document the NetChains Language.

Getting Started

Downloading

Either clone the whole repo for the source, or download the binary at NetChains/bin/release/NetChains.exe.

Language Basics

NetChains is so-called because it is a direct, scriptable interface to the .NET framework with a chain-y method of constructing commands.

Concepts

NetChains commands are formed of phrases separated by double colons (::). Commands fall under one of two types:

  • A selection/shift phrase starts with a bang (!) and is the name of a class to 'select'. You can think of selecting as class as moving into its scope. For instance, to use the WriteLine method you would first need to select the Console class with !Console. NOTE: you cannot select namespaces, only classes.
  • An access/command allows you to use any of the members/methods in the selected class.

Classes

The NetChains interpreter assumes that you would like to use the System namespace, and imports it for you. Class selection commands are automatically rooted in System. For example, to use the System.Console class type !Console (not !System.Console).

Clone this wiki locally