Skip to content

Commit

Permalink
update bnf and codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankenote committed Dec 31, 2024
1 parent 39623bc commit a9fa4e3
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 446 deletions.
67 changes: 38 additions & 29 deletions src/main/gen/io/github/facilityapi/intellij/parser/FsdParser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.github.facilityapi.intellij.parser;

import com.intellij.lang.parser.GeneratedParserUtilBase;

public class FsdParserUtil extends GeneratedParserUtilBase {
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/main/gen/io/github/facilityapi/intellij/psi/FsdTypes.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/kotlin/io/github/facilityapi/intellij/fsd.bnf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
parserClass="io.github.facilityapi.intellij.parser.FsdParser"
parserUtilClass="io.github.facilityapi.intellij.parser.FsdParserUtil"

psiClassPrefix="Fsd"
psiImplClassSuffix="Impl"
Expand Down Expand Up @@ -42,8 +43,7 @@

definition ::= (attribute_list* service_spec) markdown_remarks*

service_spec ::= (service identifier service_items[';']) { pin=1 }
service_items ::= ('{' decorated_service_item* '}') | decorated_service_item
service_spec ::= (service identifier ';' decorated_service_item*) | (service identifier '{' decorated_service_item* '}') { pin=1 }
decorated_service_item ::= attribute_list* service_item
private service_item ::= (extern_decl | enum_spec | data_spec | method_spec | error_set_spec) { recoverWhile=service_item_recover }
private service_item_recover ::= !('[' | '}' | extern | enum | data | errors | method)
Expand Down
Loading

0 comments on commit a9fa4e3

Please sign in to comment.