diff --git a/hugo/content/docs/recipes/lexis/_index.md b/hugo/content/docs/recipes/lexis/_index.md new file mode 100644 index 00000000..73416731 --- /dev/null +++ b/hugo/content/docs/recipes/lexis/_index.md @@ -0,0 +1,4 @@ +--- +title: Lexis" +weight: 100 +--- \ No newline at end of file diff --git a/hugo/content/docs/recipes/lexis/case-insensitive-languages.md b/hugo/content/docs/recipes/lexis/case-insensitive-languages.md new file mode 100644 index 00000000..cb5728f5 --- /dev/null +++ b/hugo/content/docs/recipes/lexis/case-insensitive-languages.md @@ -0,0 +1,18 @@ +--- +title: "Case-insensitive languages" +weight: 100 +--- + +* case-insensitive languages are more suitable for beginners, because they don't have to worry about the case of identifiers and keywords +* there are basically two options you can choose from: + * you can either make Langium case-insensitive by configuration + * or you can include case-insensitivity only where you need it + +## Case-insensitive Langium + +* to make Langium case-insensitive, you have to set the `caseInsensitive` option in the `LangiumConfig` object + +## Case-insensitivity on demand + +* if you want to include case-insensitivity only where you need it, you can use the `i` flag inside of your grammar regexes +* do not forget to adjust your scoping as well! \ No newline at end of file diff --git a/hugo/content/docs/recipes/syntax/_index.md b/hugo/content/docs/recipes/syntax/_index.md new file mode 100644 index 00000000..c2bb0bb7 --- /dev/null +++ b/hugo/content/docs/recipes/syntax/_index.md @@ -0,0 +1,4 @@ +--- +title: "Syntax" +weight: 200 +--- \ No newline at end of file diff --git a/hugo/content/docs/recipes/syntax/left-factors.md b/hugo/content/docs/recipes/syntax/left-factors.md new file mode 100644 index 00000000..e69de29b diff --git a/hugo/content/docs/recipes/syntax/left-recursion.md b/hugo/content/docs/recipes/syntax/left-recursion.md new file mode 100644 index 00000000..e69de29b