Coder Social home page Coder Social logo

david-von-tamar / clausewitz-interpreter Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 0.0 168 KB

An interpreter for Paradox Interactive's Clausewitz engine's scripting language.

License: GNU Lesser General Public License v3.0

C# 100.00%
clausewitz-interpreter interpreter clausewitz-files clausewitzengine paradox-interactive paradox-game-data europa-universalis-4 crusaders-kings-2 hearts-of-iron-4 victoria2

clausewitz-interpreter's Introduction

A .NET Interpreter for Clausewitz Engine

Introduction

This is a .NET interpreter for Clausewitz's scripting language. The interpreter helps with reading, writing, editing and querying the contents of standard Clausewitz files made by Paradox Interactive for their various soft-coded games.

This interpreter uses an abstract data tree structure when tokenizing the Clausewitz files, and offers pragma commands for sorting and indenting files, and enforces comment association to prevent their loss. With these features, it may be used as a cleanup tool for messy projects that were already made around Clausewitz files.

Dependencies

  1. Currently set to .NET 6.0.
  2. The CLI requires my ANSITerm library1. If your IDE does not resolve this dependency from Nuget, then you may either git clone that library and attach it to this solution, or you may download the package Tamar.ANSITerm itself from Nuget's website.

I/O results

Input: input.txt

Output: output.txt

Notes:

1: I created my own ANSI-Compliant System.Console implementation because .NET's default System.Console could not display 24-bit colors properly on Linux terminals which support ANSI escape codes.

clausewitz-interpreter's People

Contributors

davidvontamar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.