Skip to content

Commit

Permalink
Docs: add description of syntax files.
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Nov 2, 2024
1 parent cffecf2 commit 59bec48
Show file tree
Hide file tree
Showing 15 changed files with 7,518 additions and 4 deletions.
34 changes: 30 additions & 4 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Changelog
4.0 (2024-??-??)
~~~~~~~~~~~~~~~~

- Added a generic technique for describing language backends based on the idea
of syntax files (`#450 <https://github.com/skvadrik/re2c/issues/450>`_).

- Added support for new languages: D, Haskell, Java, JavaScript, OCaml, Python,
V, Zig.

- Completely redesigned and reimplemented codegen subsystem based on the new
concept of syntax files (`#450 <https://github.com/skvadrik/re2c/issues/450>`_).

- Added new record API for all languages (enabled with ``--api record``,
``re2c:api = record``) and made it the default API for Haskell and OCaml.

Expand Down Expand Up @@ -74,7 +74,7 @@ Changelog
+ ``re2c:[variable:]yypmatch``
+ ``re2c:[variable:]yych:literals``

- All configurations that have `define:` or `variable:` part in their name
- All configurations that have ``define:`` or ``variable:`` part in their name
now have an alias without this part.

- Added new block types:
Expand Down Expand Up @@ -186,6 +186,32 @@ Changelog
+ ``code:yybm_filter``
+ ``code:yybm_match``

- Added global variables in syntax files:

+ ``nl``
+ ``indent``
+ ``dedent``
+ ``topindent``

- Added global conditionals in syntax files:

+ ``.api.simple``
+ ``.api.generic``
+ ``.api.record``
+ ``.api_style.functions``
+ ``.api_style.freeform``
+ ``.case_ranges``
+ ``.code_model.goto_label``
+ ``.code_model.loop_switch``
+ ``.code_model.recursive_functions``
+ ``.date``
+ ``.loop_label``
+ ``.monadic``
+ ``.start_conditions``
+ ``.storable_state``
+ ``.unsafe``
+ ``.version``

- Added warning ``-Wundefined-syntax-config``.

- Warnings that indicate serious issues are now turned on by default
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ re2c_SRC_DOC_EXT = \
doc/manual/basics/configurations.rst_ \
doc/manual/basics/regular_expressions.rst_ \
doc/manual/basics/syntax.rst_ \
doc/manual/basics/syntax_files.rst_ \
doc/manual/basics/options/debug.rst_ \
doc/manual/basics/options/internal.rst_ \
doc/manual/basics/options/options.rst_ \
Expand Down
Loading

0 comments on commit 59bec48

Please sign in to comment.