Author Topic: Simple syntax  (Read 2412 times)

Offline jay_m

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Simple syntax
« on: June 12, 2011, 11:20:47 pm »
I am trying to get my spec file right for a posting language for a CAM program.  It uses very simple syntax.  A procedure is defined with a name that begins with "p" (ie pnum_2) and is the first character on the line.
Quote
prdrlout        #R drill position
      if cuttype = one, refht_a = refht$ + (rotdia$ / two)
      else, refht_a = refht$
      refht_i = refht$ - initht$
      if cuttype = three, refht_a = w$
      if absinc$ = zero, refht_a, !refht_i
      else, refht_i, !refht_a

the procdure is closed with either the next procedure opening or end of file.

Can anybody help create the <scope> syntax to open and close these procedures.  I am adapting the bash_spec.xml file for my language.

Thanks,

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Simple syntax
« Reply #1 on: June 12, 2011, 11:57:03 pm »
Hi jay,

welcome on forum. Do not try: there is no way currently. Scopes need to have close tag always. It is planned to have indent based outlining, maybe this will help in your case (looking on provided example).
What you can do, is to extend Labels to show such procedures in Navigation list (combo on top of editor screen: Alt+M and filter with typing).
Maybe it will not cover your needs but will add you way for fast navigation. Labels are regular expressions based, so much more flexible, and do not require end tag.

I am on vacation for next 1.5 week, so will help later, if you will have questions.

BR, Alex.

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
5880 Views
Last post January 21, 2012, 03:21:37 am
by alex
1 Replies
1502 Views
Last post October 25, 2009, 11:05:59 pm
by alex
2 Replies
3150 Views
Last post April 11, 2011, 12:27:36 pm
by Anonymous
2 Replies
1743 Views
Last post September 23, 2011, 05:18:36 am
by false007
2 Replies
1624 Views
Last post January 11, 2013, 08:27:48 am
by false007