Help with my grammar file

21 views
Skip to first unread message

Manere Dev

unread,
Apr 10, 2024, 12:16:16 PMApr 10
to antlr-discussion
I'm trying to allow spaces inside of a name of a key (node, section, etc)

How can I do this? I need to change the ID I'm pretty sure

Input:

test = true

section {
    key = 'value'
   
    innersection {
        key = 'value'
    }
}

types {
  string = "asdasdsad"
  string2 = 'asdad'
  integer = 0
  double = 0.0
  float = 0.0f
  true_boolean = true
  false_boolean = false
}
ConfigFile.g4
Reply all
Reply to author
Forward
0 new messages