From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Apr 2018 13:13:37 +0200 Subject: Cowboy 2.3.0 --- articles/xerl-0.1-empty-modules/index.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'articles/xerl-0.1-empty-modules/index.html') diff --git a/articles/xerl-0.1-empty-modules/index.html b/articles/xerl-0.1-empty-modules/index.html index ae059e29..b06042e4 100644 --- a/articles/xerl-0.1-empty-modules/index.html +++ b/articles/xerl-0.1-empty-modules/index.html @@ -7,7 +7,7 @@ - + Nine Nines: Xerl: empty modules @@ -87,7 +87,7 @@ Core Erlang is a very neat language for machine generated code, and we will learn many things about it.

Today we will only focus on compiling the following code:

-
@@ -110,7 +110,7 @@ but we simply do not allow them in the Xerl language.

Rules consist of a regular expression followed by Erlang code. The latter must return a token representation or the atom skip_token.

-
@@ -129,7 +129,7 @@ the TokenLine variable contains the line number. View the complete file.

We obtain the following result from the lexer:

-
@@ -147,7 +147,7 @@ We will support a single expression for now, the mod expression which defines a module. And that’s it! We end up with the following grammar:

-
@@ -161,7 +161,7 @@ http://www.gnu.org/software/src-highlite -->

We obtain the following result from the parser:

-
@@ -185,7 +185,7 @@ the code generator echoes the grammar we defined in the parser, and simply applies the appropriate Core Erlang functions for each expressions.

We obtain the following pretty-printed Core Erlang generated code:

-
@@ -221,6 +221,10 @@ the next few articles.