Skip to content
EvilBeaver edited this page May 22, 2014 · 25 revisions

Welcome

Этот проект является попыткой альтернативной реализации виртуальной машины, исполняющей скрипты на языке 1С:Предприятие.

Задача минимум - выполнение типичных административных сценариев с использованием инфраструктуры WSH.

Задача максимум - помощь сообществу разработчиков 1С в написании приложений на знакомом языке.

Предполагаемый результат - еще один никому не нужный скриптовый язык, коих уже пруд-пруди.

Состав репозитория

Репозиторий включает в себя несколько приложений

  1. oscript - основной компонент выполнения скриптов в командной строке
  2. TestApp - песочница для проб и ошибок в написании скриптов
  3. Пока в разработке

Особенности скриптов

Каждый скрипт представляет собой текстовый документ в кодировке UTF-8 with BOM или windows-1251.

Синтаксис скрипта представляет собой стандартный язык системы 1С:Предприятие.

This wiki uses the Markdown syntax.

The wiki itself is actually a git repository, which means you can clone it, edit it locally/offline, add images or any other file type, and push it back to us. It will be live immediately.

Go ahead and try: Test link Click me

$ git clone https://[email protected]/EvilBeaver/1script.git/wiki

Wiki pages are normal files, with the .md extension. You can edit them locally, as well as creating new ones.

Syntax highlighting

You can also highlight snippets of text (we use the excellent Pygments library).

Here's an example of some Python code:

#!python

def wiki_rocks(text):
    formatter = lambda t: "funky"+t
    return formatter(text)

You can check out the source of this page to see how that's done, and make sure to bookmark [the vast library of Pygment lexers][lexers], we accept the 'short name' or the 'mimetype' of anything in there. [lexers]: http://pygments.org/docs/lexers/

Have fun!

Clone this wiki locally