jacamo-lang / jacamo

This project aims to promote the MultiAgent Oriented Programming (MAOP) approach by providing a suitable integration of tools and languages for programming agents, their environment and organisation.
https://jacamo-lang.github.io
GNU Lesser General Public License v3.0
77 stars 31 forks source link

Bug in the .JCM file #49

Open nilsonLazarin opened 1 year ago

nilsonLazarin commented 1 year ago

Hello everyone,

When I put the "}" in a new line, it works well. See lines 17,20,23,26,29.

Captura de tela de 2023-06-03 04-37-58

But when I put the "}" on the same line, the interpreter complains. See line 16.

Captura de tela de 2023-06-03 04-38-34

jomifred commented 1 year ago

Hi Nilson,

this a known issue of the JCM parser.... If someone here has more experience with JavaCC parser generator, it would be a great help fixing this issue. (the parser is code is at https://github.com/jacamo-lang/jacamo/blob/master/src/main/javacc/JaCaMoProjectParser.jj)