Skip to content

unLomTrois/lexiCK2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Golang implementation of linting PDXScript files for Crusader Kings 2

Structure

It is composed of three parts:

  • lexer (tokenizer)
  • parser (LL(1) parser)
  • linter

Lexer creates stream of tokens that is consumed by parser, catches lexical errors, like unknown tokens (e.g. you can't write !=)

Parser makes AST (Abstract Syntax Tree), catches syntax errors (e.g. not closed curly brace)

Linter takes AST and rewrites the file by set linting rules

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published