Skip to content

Latest commit

 

History

History

e4sm.de.antlr4.petri.grammar

ANTLR v.4 Petri Net Grammar

This plugin contains an ANTLR v.4 grammar in order to parse all SCPN text snippets.

[[TOC]]

Naming Conventions

Grammar files (.g4)

  • Parser Rules start with a lower-case letter, then camelCase.
  • Literals are completely written in capital letters. Multiple words are split with an underscore.

Java

  • Classes: start with a capital letter.
  • Attributes and references: start with a lower-case letter.
  • Operations: start with a lower-case letter.

If a noun contains multiple words, please use camelCase.