Stubbing out parsing and starting on rendering flow
This commit is contained in:
+20
-2
@@ -1,5 +1,23 @@
|
||||
import Render from 'components/Render';
|
||||
|
||||
class RenderJS extends Render {}
|
||||
const parse = expr => {
|
||||
return {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
props: {
|
||||
quoted: true
|
||||
},
|
||||
children: [
|
||||
`JS => ${ expr }`
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
export default RenderJS;
|
||||
export {
|
||||
parse,
|
||||
Render
|
||||
};
|
||||
|
||||
+20
-2
@@ -1,5 +1,23 @@
|
||||
import Render from 'components/Render';
|
||||
|
||||
class RenderPCRE extends Render {}
|
||||
const parse = expr => {
|
||||
return {
|
||||
type: 'SVG',
|
||||
children: [
|
||||
{
|
||||
type: 'Text',
|
||||
props: {
|
||||
quoted: true
|
||||
},
|
||||
children: [
|
||||
`PCRE => ${ expr }`
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
export default RenderPCRE;
|
||||
export {
|
||||
parse,
|
||||
Render
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user