https://github.com/sergeysova/peg-rb-js
https://github.com/sergeysova/peg-rb-js
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sergeysova/peg-rb-js
- Owner: sergeysova
- Created: 2016-09-28T22:08:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-01T17:46:19.000Z (almost 10 years ago)
- Last Synced: 2025-06-20T01:53:12.801Z (about 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Ruby-like syntax for JavaScript(Babel)
```rb
import React from 'react'
import (Component, PropTypes as PT, PureComponent) from 'react'
import React, (PureComponent, PropTypes as PT) from 'react'
def simple
end
def bang!
end
def ask?
end
def params a,b
end
def params1(a,b)
end
def with_bang! a,b
end
def with_ask?(a,b)
end
class Example
end
class Foo < Bar
end
```