Cool !!
With this lexer, I've introduced SynWrite to the 3D modeling community:
http://www.thingiverse.com/thing:1237864
http://forum.openscad.org/Happy-New-Yea ... 15402.html
Search found 15 matches
- 27.12.2015 23:45
- Forum: Lexers
- Topic: How to allow ( ) in func parameters ?
- Replies: 3
- Views: 2151
- 27.12.2015 17:31
- Forum: Lexers
- Topic: How to allow ( ) in func parameters ?
- Replies: 3
- Views: 2151
How to allow ( ) in func parameters ?
I have the following OpenSCAD code: function f1( c,d=0,k=[] )= <statements> ; I was able to make a foldable for it with a common symbol parser [\{\},\<\>;\#\(\)\[\]=\.\*\+\$-\?/&] and 2 rules: rule_func<id>(..)=... 0 Equal <symbol> = 1 Equal <symbol> ) 2 Skip < all tokens > 3 Equal <symbol> ( 4 ...
- 25.12.2015 17:29
- Forum: Lexers
- Topic: Anyway to catch module with comments in module header?
- Replies: 4
- Views: 2190
- 25.12.2015 17:18
- Forum: Lexers
- Topic: Anyway to catch module with comments in module header?
- Replies: 4
- Views: 2190
- 25.12.2015 07:17
- Forum: Lexers
- Topic: Anyway to catch module with comments in module header?
- Replies: 4
- Views: 2190
Anyway to catch module with comments in module header?
How can I catch modules having the following 2 structures : module m1(a,b){ ...... } module m2(a,b) // comment { ...... } I setup the block header rule conditions like this: 0 = <symbol> = { 1 = <symbol> = ) 2 Skip all other tokens 3 = <symbol> = ( 4 = <identifier> 5 = <identifier> = module This cat...
- 23.12.2015 21:49
- Forum: Lexers
- Topic: Anyway to collapse line comments // ?
- Replies: 1
- Views: 1434
Anyway to collapse line comments // ?
Is it possible to make the following single-line comments collapsible ?
blah blah ...
// comment line 1
// comment line 2
// comment line 3
// comment line 4
blah blah blan ...
to:
blah blah ...
[+] (// comment line1 )
blah blah blan ...
blah blah ...
// comment line 1
// comment line 2
// comment line 3
// comment line 4
blah blah blan ...
to:
blah blah ...
[+] (// comment line1 )
blah blah blan ...
- 22.12.2015 20:50
- Forum: Lexers
- Topic: Is there any way to inherit a lexer dynamically?
- Replies: 1
- Views: 1277
Is there any way to inherit a lexer dynamically?
Suppose we have a lexer A, and I want to make a lexer A2 that has 2 parts:
part1 comes from A
part2 newly added in A2
This A2 has a link to A, so when A is modified, the part1 of A2 is automatically updated.
Is it possible to do this ?
part1 comes from A
part2 newly added in A2
This A2 has a link to A, so when A is modified, the part1 of A2 is automatically updated.
Is it possible to do this ?
- 22.12.2015 17:35
- Forum: Lexers
- Topic: OpenSCAD lexer
- Replies: 6
- Views: 4482
OpenSCAD lexer
Sure. The language I'm working on is http://www.openscad.org, which is very popular in 3D printing.Alexey wrote:I welcome done lexer as Zip file (make it by ExLexer plugin!!)
- 22.12.2015 17:33
- Forum: Lexers
- Topic: "Not a parent" confusion
- Replies: 3
- Views: 1654