1.0.25 • Published 5 years ago

@nyar/arc-antlr v1.0.25

Weekly downloads
1
License
MPL-2.0
Repository
-
Last release
5 years ago

Arc Readable Configuration

Site LICENSE LICENSE

How to Start

Just copy json file, then remove { } pair, following json migration tutorial.

Try js parser: Arc - Hive

Try vscode support: VScode - ARC

DataType

TypeExampleRemark
Integer25Atom, BigInteger
Decimal1.234Atom, Not Float
String'literal'Atom
Cite$cite/pathAtom
Specialtrue, nullAtom
Macro@macro`apply`Macro
List[1, 2, 3]Container
Dict{1: 3}Container
ListMark<list/path>Scope
DictMark(dict/path)Scope
  • How to expand a macro is determined by the host language. In most cases, ARC does not mandate how the language handle cases.
  • There is also no rule on how to handle special values.
  • $cite only expand once. This is used to share simple version numbers and constants. Don't overuse.

Comparing

Compare with other readable formats

HOCON

No override, No include.

ARC is designed to be a static single file format.

You must write similar businesses together.

Too many calculation properties make the configuration unreadable.

If you really want to use properties from elsewhere, define something like @Including.

TOML

No exponent type like 2e4, because it doesn't have a explicit precision.

And @f64`2e4` works the same like TOML.

JSON

Compatible with json!

You can just delete the { } at the beginning and ending, because ARC must use key-value pair.

YAML

You don't need to buy a vernier caliper!

You won't confuse whether you should add -.

Every symbol in ARC has only one effect.

XML like

Forget them!

License

Prohibit use during overtime!

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago