на Главную Форума - back to Forum Indexна Главную Форума - back to Forum Indexна Главную Форума - back to Forum Index
на Главную Форума - back to Forum Index
Эадор.Сотворение - Eador.The Genesis на Главную Форума - back to Forum Indexна Главную Форума - back to Forum Indexна Главную Форума - back to Forum Index
на Главную Форума - back to Forum Index
Автор / Сообщение

Parser for game files

   Boon947

 
 
 }↑↑ Великий Лучник
Ветеран



Свитков: 667
С нами с: 24.09.2014
Цитировать
СообщениеДобавлено: Вт Dec 23, 2014 3:02     Заголовок сообщения: Parser for game files

Hello everyone,

I have written a parser to try and catch syntax errors in var files.

Most of the "issues" found were only stylistic inconsistencies (which I've "corrected" to shut the parser up) but there were also actual bugs (two in unit.var and a stray semicolon in defender.var).

The project is hosted on github:
https://github.com/Boon947/eador
see the ru/var folder for the updated files

I will also import Satshanti's translation, and fix whatever the parser reports, as time permits.

The parser source code is check_syntax.c and the tool is run as
$ check_syntax input template language
input = the var file to scan
template = a template specified using @N "expressions"
Код:
@0 for an unsigned integer,
@1 for a signed integer,
@2 for a comma-separated list of unsigned integers,
@3 for a semicolon-separated list of unsigned integer pairs (only used in unit.var),
@4 for a label,
@5 for a name/description in russian or english,
@6 to ignore a Text: free-form dialog (in the two dialog files).
See the template files for examples.

language = ru (for Russian) or en (for English)

I'd love to hear your comments Wink

Regards.
Посмотреть профиль Отправить личное сообщение
   Boon947

 
 
 }↑↑ Великий Лучник
Ветеран



Свитков: 667
С нами с: 24.09.2014
Цитировать
СообщениеДобавлено: Пн Окт 19, 2020 23:18     Заголовок сообщения:

By any chance, did anyone save the source code for the parser?

I can't find it in my backups Sad

Regards.
Посмотреть профиль Отправить личное сообщение
Часовой пояс: GMT +3:00


 


Ты не можешь начинать темы
Ты не можешь отвечать на сообщения
Ты не можешь редактировать свои сообщения
Ты не можешь удалять свои сообщения
Ты не можешь голосовать в опросах
на Главную Форума - back to Forum Indexна Главную Форума - back to Forum Indexна Главную Форума - back to Forum Indexна Главную Форума - back to Forum Index Eador. The Genesis. Encyclopedia на Главную Форума - back to Forum Indexна Главную Форума - back to Forum Indexна Главную Форума - back to Forum Index