Author Topic: Better config syntax: Squirrel Table  (Read 2093 times)

tomek

  • Full Member
  • ***
  • Posts: 29
    • View Profile
    • About Me
Better config syntax: Squirrel Table
« on: August 16, 2015, 05:26:49 PM »
What do you think about changing the syntax of the config file to use something like Squirrel Tables? I think it would make for a much nicer experience when editing the config files. At the moment since the syntax is really loose my editor of choice (Sublime) can be used in limited capacity and doesn't offer any of nice features that are usually on offer through syntax highlighting modes.


-t

akafox

  • Hero Member
  • *****
  • Posts: 797
    • View Profile
Re: Better config syntax: Squirrel Table
« Reply #1 on: August 16, 2015, 09:29:45 PM »
nope...needs to be easy just like it is...or..make it a choice. It has to be simple..or we lose people.
People want life easy..then complain about it

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 829
    • View Profile
    • new projects
Re: Better config syntax: Squirrel Table
« Reply #2 on: August 17, 2015, 03:38:35 AM »
@Tomek

check out my thread about syntax highlighting: http://forum.attractmode.org/index.php?topic=213.msg1281#msg1281

Maybe you could write a squirrel syntax highlighting definition for sublime (or just tweak existing one)?
For me definition for Groovy is quite ok to start with.

akafox

  • Hero Member
  • *****
  • Posts: 797
    • View Profile
Re: Better config syntax: Squirrel Table
« Reply #3 on: August 17, 2015, 05:39:04 AM »
OK you are talking about the nut files for layouts and such not the AM cfg file. Yeah they need to be highlighted..all code should be..makes it easier to read.
People want life easy..then complain about it

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 829
    • View Profile
    • new projects
Re: Better config syntax: Squirrel Table
« Reply #4 on: August 17, 2015, 06:58:14 AM »
ahhh... right :)

tomek

  • Full Member
  • ***
  • Posts: 29
    • View Profile
    • About Me
Re: Better config syntax: Squirrel Table
« Reply #5 on: August 17, 2015, 04:54:43 PM »

Actually I was talking about AM config files. But I can appreciate what you're saying about simplicity. People who do not have a lot of coding experience should be able to configure the system and once you start introducing braces and semicolons they'll make a lot of mistakes.


As for syntax highlighting I was initially using JavaScript as it was close enough for me but now I am using a Sublime package.


This just in, I've just found this which might be even better. Will need to try it out at home tonight.


cheers,
-tomek

OK you are talking about the nut files for layouts and such not the AM cfg file. Yeah they need to be highlighted..all code should be..makes it easier to read.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 829
    • View Profile
    • new projects
Re: Better config syntax: Squirrel Table
« Reply #6 on: August 17, 2015, 05:28:59 PM »
Great! It looks like now I have a real reason to switch to sublime.